[PATCH] Fix warning in gkc (make gconfig) {Scanned}

2005-02-11 Thread Romain Lievin
Hi,

this patch against 2.6.11-rc3 fixes some warnings about GtkToolButton in gkc 
(the GTK Kernel Configurator).

Please apply.

Thanks, Romain.

Signed-off-by: Romain Liévin <[EMAIL PROTECTED]>
[cut here]
diff -Naur linux-2.6.11-rc3/scripts/kconfig/gconf.c 
linux/scripts/kconfig/gconf.c
--- linux-2.6.11-rc3/scripts/kconfig/gconf.c2005-02-11 20:41:34.0 
+0100
+++ linux/scripts/kconfig/gconf.c   2005-02-11 20:43:23.0 +0100
@@ -222,15 +222,15 @@
switch (view_mode) {
case SINGLE_VIEW:
widget = glade_xml_get_widget(xml, "button4");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
case SPLIT_VIEW:
widget = glade_xml_get_widget(xml, "button5");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
case FULL_VIEW:
widget = glade_xml_get_widget(xml, "button6");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
}
 
[cut here]
-- 
Romain Liévin : <[EMAIL PROTECTED]>
Web site :  http://www.lievin.net
"Linux, y'a moins bien mais c'est plus cher !"



diff -Naur linux-2.6.11-rc3/scripts/kconfig/gconf.c 
linux/scripts/kconfig/gconf.c
--- linux-2.6.11-rc3/scripts/kconfig/gconf.c2005-02-11 20:41:34.0 
+0100
+++ linux/scripts/kconfig/gconf.c   2005-02-11 20:43:23.0 +0100
@@ -222,15 +222,15 @@
switch (view_mode) {
case SINGLE_VIEW:
widget = glade_xml_get_widget(xml, "button4");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
case SPLIT_VIEW:
widget = glade_xml_get_widget(xml, "button5");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
case FULL_VIEW:
widget = glade_xml_get_widget(xml, "button6");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
}
 


[PATCH] Fix warning in gkc (make gconfig) {Scanned}

2005-03-09 Thread Romain Lievin
Hi,

this patch against 2.6.11-rc3 fixes some warnings about GtkToolButton in gkc
(the GTK Kernel Configurator).

Please apply.

Thanks, Romain.

Signed-off-by: Romain Liévin <[EMAIL PROTECTED]>
[cut here]
diff -Naur linux-2.6.11-rc3/scripts/kconfig/gconf.c 
linux/scripts/kconfig/gconf.c
--- linux-2.6.11-rc3/scripts/kconfig/gconf.c2005-02-11 20:41:34.0 
+0100
+++ linux/scripts/kconfig/gconf.c   2005-02-11 20:43:23.0 +0100
@@ -222,15 +222,15 @@
switch (view_mode) {
case SINGLE_VIEW:
widget = glade_xml_get_widget(xml, "button4");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
case SPLIT_VIEW:
widget = glade_xml_get_widget(xml, "button5");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
case FULL_VIEW:
widget = glade_xml_get_widget(xml, "button6");
-   gtk_button_clicked(GTK_BUTTON(widget));
+   g_signal_emit_by_name(widget, "clicked");
break;
}
 
[cut here]
-- 
Romain Liévin : <[EMAIL PROTECTED]>
Web site :  http://www.lievin.net
"Linux, y'a moins bien mais c'est plus cher !"






-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/