[Xfce4-commits] <xfce4-settings:master> Remove some code which is not needed since builder is not global anymore.
Jérôme Guelfucci
noreply at xfce.org
Tue Jan 19 19:34:25 CET 2010
Updating branch refs/heads/master
to 52b72e185a2403b3a22f24313a4256e75c6118a9 (commit)
from 2f2a619bee296ae8f394e4ac41f0508799c763de (commit)
commit 52b72e185a2403b3a22f24313a4256e75c6118a9
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Sun Jan 10 00:13:36 2010 +0100
Remove some code which is not needed since builder is not global
anymore.
xfce4-settings-editor/main_window.c | 25 +++++++++----------------
1 files changed, 9 insertions(+), 16 deletions(-)
diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index 52eed12..d4457d1 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -107,22 +107,15 @@ xfce4_settings_editor_main_window_new(void)
GtkTreeSelection *selection;
GObject *property_edit_button, *property_new_button, *property_revert_button;
- if (!builder)
- {
- /* hook to make sure the libxfce4ui library is linked */
- if (xfce_titled_dialog_get_type () == 0)
- return NULL;
+ /* hook to make sure the libxfce4ui library is linked */
+ if (xfce_titled_dialog_get_type () == 0)
+ return NULL;
- builder = gtk_builder_new ();
- gtk_builder_add_from_string (builder, xfce4_settings_editor_ui, xfce4_settings_editor_ui_length, NULL);
+ builder = gtk_builder_new ();
+ gtk_builder_add_from_string (builder, xfce4_settings_editor_ui, xfce4_settings_editor_ui_length, NULL);
- dialog = gtk_builder_get_object (builder, "main_dialog");
- g_object_weak_ref (G_OBJECT (dialog), (GWeakNotify) g_object_unref, builder);
- }
- else
- {
- dialog = gtk_builder_get_object (builder, "main_dialog");
- }
+ dialog = gtk_builder_get_object (builder, "main_dialog");
+ g_object_weak_ref (G_OBJECT (dialog), (GWeakNotify) g_object_unref, builder);
gtk_widget_add_events (GTK_WIDGET (dialog), GDK_KEY_PRESS_MASK);
More information about the Xfce4-commits
mailing list