[Xfce4-commits] r27090 - xfce4-settings/trunk/dialogs/appearance-settings
Stephan Arts
stephan at xfce.org
Fri Jun 20 07:35:30 CEST 2008
Author: stephan
Date: 2008-06-20 05:35:29 +0000 (Fri, 20 Jun 2008)
New Revision: 27090
Modified:
xfce4-settings/trunk/dialogs/appearance-settings/main.c
Log:
Cleanup some allocs
Modified: xfce4-settings/trunk/dialogs/appearance-settings/main.c
===================================================================
--- xfce4-settings/trunk/dialogs/appearance-settings/main.c 2008-06-19 18:20:26 UTC (rev 27089)
+++ xfce4-settings/trunk/dialogs/appearance-settings/main.c 2008-06-20 05:35:29 UTC (rev 27090)
@@ -491,6 +491,7 @@
GtkWidget *
appearance_settings_dialog_new_from_xml (GladeXML *gxml)
{
+ GtkWidget *dialog;
PropertyPair *pair = NULL;
GtkTreeIter iter;
GtkListStore *list_store;
@@ -711,13 +712,15 @@
g_signal_connect (G_OBJECT(custom_dpi_check), "toggled", G_CALLBACK(cb_custom_dpi_check_button_toggled), pair);
g_signal_connect (G_OBJECT(custom_dpi_spin), "value-changed", G_CALLBACK(cb_custom_dpi_spin_value_changed), xsettings_channel);
- GtkWidget *dialog = glade_xml_get_widget (gxml, "appearance-settings-dialog");
+ dialog = glade_xml_get_widget (gxml, "appearance-settings-dialog");
+
return dialog;
}
int
main(int argc, char **argv)
{
+ GtkWidget *dialog = NULL;
GladeXML *gxml;
GError *cli_error = NULL;
@@ -749,7 +752,7 @@
appearance_dialog_glade_length,
NULL, NULL);
- GtkWidget *dialog = appearance_settings_dialog_new_from_xml (gxml);
+ dialog = appearance_settings_dialog_new_from_xml (gxml);
gtk_dialog_run(GTK_DIALOG(dialog));
More information about the Xfce4-commits
mailing list