mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
New callback to propertly report radio actions.
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de> * demos/gtk-demo/ui_manager.c (activate_radio_action): New callback to propertly report radio actions. * demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
This commit is contained in:
parent
0ad91b0ea1
commit
cc46d181bd
@ -1,3 +1,10 @@
|
|||||||
|
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (activate_radio_action): New
|
||||||
|
callback to propertly report radio actions.
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
|
||||||
|
|
||||||
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (activate_radio_action): New
|
||||||
|
callback to propertly report radio actions.
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
|
||||||
|
|
||||||
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (activate_radio_action): New
|
||||||
|
callback to propertly report radio actions.
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
|
||||||
|
|
||||||
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (activate_radio_action): New
|
||||||
|
callback to propertly report radio actions.
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
|
||||||
|
|
||||||
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
Wed Oct 8 00:06:17 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (activate_radio_action): New
|
||||||
|
callback to propertly report radio actions.
|
||||||
|
|
||||||
|
* demos/gtk-demo/ui_manager.c (do_ui_manager): Use it here.
|
||||||
|
|
||||||
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
Tue Oct 7 23:23:05 2003 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
* gtk/gtkplug.c (xembed_set_info): Put the supported protocol
|
||||||
|
@ -12,6 +12,13 @@ activate_action (GtkAction *action)
|
|||||||
g_message ("Action \"%s\" activated", gtk_action_get_name (action));
|
g_message ("Action \"%s\" activated", gtk_action_get_name (action));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
activate_radio_action (GtkAction *action, GtkRadioAction *current)
|
||||||
|
{
|
||||||
|
g_message ("Radio action \"%s\" selected",
|
||||||
|
gtk_action_get_name (GTK_ACTION (current)));
|
||||||
|
}
|
||||||
|
|
||||||
static GtkActionEntry entries[] = {
|
static GtkActionEntry entries[] = {
|
||||||
{ "FileMenu", NULL, "_File" }, /* name, stock id, label */
|
{ "FileMenu", NULL, "_File" }, /* name, stock id, label */
|
||||||
{ "PreferencesMenu", NULL, "_Preferences" }, /* name, stock id, label */
|
{ "PreferencesMenu", NULL, "_Preferences" }, /* name, stock id, label */
|
||||||
@ -164,12 +171,12 @@ do_ui_manager (void)
|
|||||||
gtk_action_group_add_radio_actions (actions,
|
gtk_action_group_add_radio_actions (actions,
|
||||||
color_entries, n_color_entries,
|
color_entries, n_color_entries,
|
||||||
COLOR_RED,
|
COLOR_RED,
|
||||||
G_CALLBACK (activate_action),
|
G_CALLBACK (activate_radio_action),
|
||||||
NULL);
|
NULL);
|
||||||
gtk_action_group_add_radio_actions (actions,
|
gtk_action_group_add_radio_actions (actions,
|
||||||
shape_entries, n_shape_entries,
|
shape_entries, n_shape_entries,
|
||||||
SHAPE_OVAL,
|
SHAPE_OVAL,
|
||||||
G_CALLBACK (activate_action),
|
G_CALLBACK (activate_radio_action),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
ui = gtk_ui_manager_new ();
|
ui = gtk_ui_manager_new ();
|
||||||
|
Loading…
Reference in New Issue
Block a user