rename the activate-menu signal to show-menu as discussed in bug #153873.

2004-10-05  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
	show-menu as discussed in bug #153873.
This commit is contained in:
Paolo Borelli 2004-10-05 14:19:54 +00:00 committed by Paolo Borelli
parent 63f3fc79c6
commit 1ea4933f3f
7 changed files with 31 additions and 11 deletions

View File

@ -1,3 +1,8 @@
2004-10-05 Paolo Borelli <pborelli@katamail.com>
* gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
show-menu as discussed in bug #153873.
2004-10-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Set

View File

@ -1,3 +1,8 @@
2004-10-05 Paolo Borelli <pborelli@katamail.com>
* gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
show-menu as discussed in bug #153873.
2004-10-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Set

View File

@ -1,3 +1,8 @@
2004-10-05 Paolo Borelli <pborelli@katamail.com>
* gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
show-menu as discussed in bug #153873.
2004-10-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Set

View File

@ -1,3 +1,8 @@
2004-10-05 Paolo Borelli <pborelli@katamail.com>
* gtk/gtkmenutoolbutton.c: rename the activate-menu signal to
show-menu as discussed in bug #153873.
2004-10-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Set

View File

@ -41,7 +41,7 @@ A #GtkToolItem containing a button with an additional dropdown menu.
</para>
<!-- ##### SIGNAL GtkMenuToolButton::menu-activated ##### -->
<!-- ##### SIGNAL GtkMenuToolButton::show-menu ##### -->
<para>
</para>

View File

@ -48,7 +48,7 @@ static void gtk_menu_tool_button_finalize (GObject *object);
enum
{
MENU_ACTIVATED,
SHOW_MENU,
LAST_SIGNAL
};
@ -232,14 +232,14 @@ gtk_menu_tool_button_class_init (GtkMenuToolButtonClass *klass)
toolitem_class->set_tooltip = gtk_menu_tool_button_set_tooltip;
toolitem_class->toolbar_reconfigured = gtk_menu_tool_button_toolbar_reconfigured;
signals[MENU_ACTIVATED] =
g_signal_new ("menu-activated",
signals[SHOW_MENU] =
g_signal_new ("show-menu",
G_OBJECT_CLASS_TYPE (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuToolButtonClass, menu_activated),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuToolButtonClass, show_menu),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
g_object_class_install_property (object_class,
PROP_MENU,
@ -338,7 +338,7 @@ popup_menu_under_arrow (GtkMenuToolButton *button,
priv = GTK_MENU_TOOL_BUTTON_GET_PRIVATE (button);
g_signal_emit (button, signals[MENU_ACTIVATED], 0);
g_signal_emit (button, signals[SHOW_MENU], 0);
if (!priv->menu)
return;

View File

@ -50,7 +50,7 @@ struct _GtkMenuToolButtonClass
{
GtkToolButtonClass parent_class;
void (*menu_activated) (GtkMenuToolButton *button);
void (*show_menu) (GtkMenuToolButton *button);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);