forked from AuroraMiddleware/gtk
Set "draw_as_radio" on proxy menu items for radio actions.
2003-08-29 Matthias Clasen <maclas@gmx.de> * gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items for radio actions.
This commit is contained in:
parent
7dbeafb657
commit
e3e7b75557
@ -1,5 +1,8 @@
|
||||
2003-08-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
|
||||
for radio actions.
|
||||
|
||||
* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
|
||||
|
||||
Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
@ -1,5 +1,8 @@
|
||||
2003-08-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
|
||||
for radio actions.
|
||||
|
||||
* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
|
||||
|
||||
Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
@ -1,5 +1,8 @@
|
||||
2003-08-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
|
||||
for radio actions.
|
||||
|
||||
* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
|
||||
|
||||
Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
@ -1,5 +1,8 @@
|
||||
2003-08-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
|
||||
for radio actions.
|
||||
|
||||
* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
|
||||
|
||||
Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
@ -1,5 +1,8 @@
|
||||
2003-08-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkradioaction.c (create_menu_item): Set "draw_as_radio" on proxy menu items
|
||||
for radio actions.
|
||||
|
||||
* gtk/gtkgamma.c (gamma_ok_callback): Use g_strtod instead of strtod.
|
||||
|
||||
Fri Aug 29 21:40:01 2003 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include "gtkradioaction.h"
|
||||
#include "gtkradiomenuitem.h"
|
||||
#include "gtktoggleactionprivate.h"
|
||||
#include "gtktoggletoolbutton.h"
|
||||
#include "gtkintl.h"
|
||||
|
||||
#define GTK_RADIO_ACTION_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GTK_TYPE_RADIO_ACTION, GtkRadioActionPrivate))
|
||||
@ -67,6 +68,7 @@ static void gtk_radio_action_get_property (GObject *object,
|
||||
GValue *value,
|
||||
GParamSpec *pspec);
|
||||
static void gtk_radio_action_activate (GtkAction *action);
|
||||
static GtkWidget *create_menu_item (GtkAction *action);
|
||||
|
||||
|
||||
GType
|
||||
@ -116,6 +118,8 @@ gtk_radio_action_class_init (GtkRadioActionClass *klass)
|
||||
|
||||
action_class->activate = gtk_radio_action_activate;
|
||||
|
||||
action_class->create_menu_item = create_menu_item;
|
||||
|
||||
/**
|
||||
* GtkRadioAction:value:
|
||||
*
|
||||
@ -290,6 +294,14 @@ gtk_radio_action_activate (GtkAction *action)
|
||||
gtk_toggle_action_toggled (toggle_action);
|
||||
}
|
||||
|
||||
static GtkWidget *
|
||||
create_menu_item (GtkAction *action)
|
||||
{
|
||||
return g_object_new (GTK_TYPE_CHECK_MENU_ITEM,
|
||||
"draw_as_radio", TRUE,
|
||||
NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_radio_action_get_group:
|
||||
* @action: the action object
|
||||
|
Loading…
Reference in New Issue
Block a user