[Frugalware-darcs] fw-control-center: fixups for Add dialog

Christian Hamar alias krix krics at linuxforum.hu
Thu Jun 28 17:54:48 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=fw-control-center;a=darcs_commitdiff;h=20070628155244-d209c-90c0739389285f1f649dcdf4691d3959b7665b8f.gz;

[fixups for Add dialog
Christian Hamar alias krix <krics at linuxforum.hu>**20070628155244
   * Added delete-event handler for Add dialog
   * Renamed 'dialog' -> 'gn_if_add_dialog' cosmetics ownz!!!! :)
 
] {
hunk ./gnetconfig/src/gnetconfig-interface_detect.c 33
-extern GtkWidget	*dialog;
+extern GtkWidget	*gn_if_add_dialog;
hunk ./gnetconfig/src/gnetconfig-interface_detect.c 54
-	gtk_window_set_transient_for (GTK_WINDOW(if_detect_dlg), GTK_WINDOW(dialog));
+	gtk_window_set_transient_for (GTK_WINDOW(if_detect_dlg), GTK_WINDOW(gn_if_add_dialog));
hunk ./gnetconfig/src/gnetconfig-new_interface.c 41
-GtkWidget *dialog;
+GtkWidget *gn_if_add_dialog;
hunk ./gnetconfig/src/gnetconfig-new_interface.c 78
-	dialog = glade_xml_get_widget (xml, "new_interface_dialog");
+	gn_if_add_dialog = glade_xml_get_widget (xml, "new_interface_dialog");
hunk ./gnetconfig/src/gnetconfig-new_interface.c 129
+	g_signal_connect (G_OBJECT(gn_if_add_dialog),
+			"delete-event",
+			G_CALLBACK(gtk_widget_hide),
+			NULL);
+
hunk ./gnetconfig/src/gnetconfig-new_interface.c 135
-	gtk_window_set_transient_for (GTK_WINDOW(dialog), GTK_WINDOW(gn_main_window));
-	gtk_window_set_position (GTK_WINDOW(dialog), GTK_WIN_POS_CENTER_ON_PARENT);
+	gtk_window_set_transient_for (GTK_WINDOW(gn_if_add_dialog), GTK_WINDOW(gn_main_window));
+	gtk_window_set_position (GTK_WINDOW(gn_if_add_dialog), GTK_WIN_POS_CENTER_ON_PARENT);
hunk ./gnetconfig/src/gnetconfig-new_interface.c 172
-	if (!GTK_WIDGET_VISIBLE(dialog))
+	if (!GTK_WIDGET_VISIBLE(gn_if_add_dialog))
hunk ./gnetconfig/src/gnetconfig-new_interface.c 174
-		gtk_widget_show (dialog);
-		gtk_window_present (GTK_WINDOW(dialog));
+		gtk_widget_show (gn_if_add_dialog);
+		gtk_window_present (GTK_WINDOW(gn_if_add_dialog));
hunk ./gnetconfig/src/gnetconfig-new_interface.c 179
-		gtk_window_present (GTK_WINDOW(dialog));
+		gtk_window_present (GTK_WINDOW(gn_if_add_dialog));
hunk ./gnetconfig/src/gnetconfig-new_interface.c 362
-	gtk_widget_hide (dialog);
+	gtk_widget_hide (gn_if_add_dialog);
}


More information about the Frugalware-darcs mailing list