Commit 9cf66a8a authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

gtk/gtkmenu.c gtk/gtkmenuitem.c gtk/gtkmenushell.c gtk/gtknotebook.c

2008-08-11  Sven Neumann  <sven@gimp.org>

	* gtk/gtkmenu.c
	* gtk/gtkmenuitem.c
	* gtk/gtkmenushell.c
	* gtk/gtknotebook.c
	* gtk/gtkoldeditable.c
	* gtk/gtkpaned.c: use canonical signal names.



svn path=/trunk/; revision=21063
parent 36b3bed6
2008-08-11 Sven Neumann <sven@gimp.org>
* gtk/gtkmenu.c
* gtk/gtkmenuitem.c
* gtk/gtkmenushell.c
* gtk/gtknotebook.c
* gtk/gtkoldeditable.c
* gtk/gtkpaned.c: use canonical signal names.
2008-08-11 Michael Natterer <mitch@imendio.com> 2008-08-11 Michael Natterer <mitch@imendio.com>
* demos/gtk-demo/textscroll.c (create_text_view): don't use the * demos/gtk-demo/textscroll.c (create_text_view): don't use the
......
...@@ -479,7 +479,7 @@ gtk_menu_class_init (GtkMenuClass *class) ...@@ -479,7 +479,7 @@ gtk_menu_class_init (GtkMenuClass *class)
menu_shell_class->move_current = gtk_menu_move_current; menu_shell_class->move_current = gtk_menu_move_current;
menu_signals[MOVE_SCROLL] = menu_signals[MOVE_SCROLL] =
g_signal_new_class_handler (I_("move_scroll"), g_signal_new_class_handler (I_("move-scroll"),
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_CALLBACK (gtk_menu_real_move_scroll), G_CALLBACK (gtk_menu_real_move_scroll),
...@@ -668,82 +668,82 @@ gtk_menu_class_init (GtkMenuClass *class) ...@@ -668,82 +668,82 @@ gtk_menu_class_init (GtkMenuClass *class)
binding_set = gtk_binding_set_by_class (class); binding_set = gtk_binding_set_by_class (class);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Up, 0, GDK_Up, 0,
I_("move_current"), 1, I_("move-current"), 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PREV); GTK_MENU_DIR_PREV);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Up, 0, GDK_KP_Up, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PREV); GTK_MENU_DIR_PREV);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Down, 0, GDK_Down, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_NEXT); GTK_MENU_DIR_NEXT);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Down, 0, GDK_KP_Down, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_NEXT); GTK_MENU_DIR_NEXT);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Left, 0, GDK_Left, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PARENT); GTK_MENU_DIR_PARENT);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Left, 0, GDK_KP_Left, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PARENT); GTK_MENU_DIR_PARENT);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Right, 0, GDK_Right, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_CHILD); GTK_MENU_DIR_CHILD);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Right, 0, GDK_KP_Right, 0,
"move_current", 1, "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE, GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_CHILD); GTK_MENU_DIR_CHILD);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Home, 0, GDK_Home, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_START); GTK_SCROLL_START);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Home, 0, GDK_KP_Home, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_START); GTK_SCROLL_START);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_End, 0, GDK_End, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_END); GTK_SCROLL_END);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_End, 0, GDK_KP_End, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_END); GTK_SCROLL_END);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Page_Up, 0, GDK_Page_Up, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_UP); GTK_SCROLL_PAGE_UP);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Page_Up, 0, GDK_KP_Page_Up, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_UP); GTK_SCROLL_PAGE_UP);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Page_Down, 0, GDK_Page_Down, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_DOWN); GTK_SCROLL_PAGE_DOWN);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Page_Down, 0, GDK_KP_Page_Down, 0,
"move_scroll", 1, "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_DOWN); GTK_SCROLL_PAGE_DOWN);
...@@ -1146,7 +1146,7 @@ gtk_menu_attach_to_widget (GtkMenu *menu, ...@@ -1146,7 +1146,7 @@ gtk_menu_attach_to_widget (GtkMenu *menu,
data = g_slice_new (GtkMenuAttachData); data = g_slice_new (GtkMenuAttachData);
data->attach_widget = attach_widget; data->attach_widget = attach_widget;
g_signal_connect (attach_widget, "screen_changed", g_signal_connect (attach_widget, "screen-changed",
G_CALLBACK (attach_widget_screen_changed), menu); G_CALLBACK (attach_widget_screen_changed), menu);
attach_widget_screen_changed (attach_widget, NULL, menu); attach_widget_screen_changed (attach_widget, NULL, menu);
...@@ -1990,7 +1990,7 @@ gtk_menu_set_tearoff_state (GtkMenu *menu, ...@@ -1990,7 +1990,7 @@ gtk_menu_set_tearoff_state (GtkMenu *menu,
height/2, height/2,
height)); height));
g_object_connect (menu->tearoff_adjustment, g_object_connect (menu->tearoff_adjustment,
"signal::value_changed", gtk_menu_scrollbar_changed, menu, "signal::value-changed", gtk_menu_scrollbar_changed, menu,
NULL); NULL);
menu->tearoff_scrollbar = gtk_vscrollbar_new (menu->tearoff_adjustment); menu->tearoff_scrollbar = gtk_vscrollbar_new (menu->tearoff_adjustment);
......
...@@ -163,7 +163,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass) ...@@ -163,7 +163,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
widget_class->activate_signal = menu_item_signals[ACTIVATE]; widget_class->activate_signal = menu_item_signals[ACTIVATE];
menu_item_signals[ACTIVATE_ITEM] = menu_item_signals[ACTIVATE_ITEM] =
g_signal_new (I_("activate_item"), g_signal_new (I_("activate-item"),
G_OBJECT_CLASS_TYPE (gobject_class), G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuItemClass, activate_item), G_STRUCT_OFFSET (GtkMenuItemClass, activate_item),
...@@ -172,7 +172,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass) ...@@ -172,7 +172,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
menu_item_signals[TOGGLE_SIZE_REQUEST] = menu_item_signals[TOGGLE_SIZE_REQUEST] =
g_signal_new (I_("toggle_size_request"), g_signal_new (I_("toggle-size-request"),
G_OBJECT_CLASS_TYPE (gobject_class), G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuItemClass, toggle_size_request), G_STRUCT_OFFSET (GtkMenuItemClass, toggle_size_request),
...@@ -182,7 +182,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass) ...@@ -182,7 +182,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
G_TYPE_POINTER); G_TYPE_POINTER);
menu_item_signals[TOGGLE_SIZE_ALLOCATE] = menu_item_signals[TOGGLE_SIZE_ALLOCATE] =
g_signal_new (I_("toggle_size_allocate"), g_signal_new (I_("toggle-size-allocate"),
G_OBJECT_CLASS_TYPE (gobject_class), G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuItemClass, toggle_size_allocate), G_STRUCT_OFFSET (GtkMenuItemClass, toggle_size_allocate),
......
...@@ -261,7 +261,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) ...@@ -261,7 +261,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
menu_shell_signals[MOVE_CURRENT] = menu_shell_signals[MOVE_CURRENT] =
g_signal_new (I_("move_current"), g_signal_new (I_("move-current"),
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkMenuShellClass, move_current), G_STRUCT_OFFSET (GtkMenuShellClass, move_current),
...@@ -271,7 +271,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) ...@@ -271,7 +271,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
GTK_TYPE_MENU_DIRECTION_TYPE); GTK_TYPE_MENU_DIRECTION_TYPE);
menu_shell_signals[ACTIVATE_CURRENT] = menu_shell_signals[ACTIVATE_CURRENT] =
g_signal_new (I_("activate_current"), g_signal_new (I_("activate-current"),
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkMenuShellClass, activate_current), G_STRUCT_OFFSET (GtkMenuShellClass, activate_current),
...@@ -290,7 +290,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) ...@@ -290,7 +290,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
menu_shell_signals[CYCLE_FOCUS] = menu_shell_signals[CYCLE_FOCUS] =
g_signal_new_class_handler (I_("cycle_focus"), g_signal_new_class_handler (I_("cycle-focus"),
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_CALLBACK (gtk_real_menu_shell_cycle_focus), G_CALLBACK (gtk_real_menu_shell_cycle_focus),
...@@ -312,7 +312,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) ...@@ -312,7 +312,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
* Since: 2.12 * Since: 2.12
*/ */
menu_shell_signals[MOVE_SELECTED] = menu_shell_signals[MOVE_SELECTED] =
g_signal_new (I_("move_selected"), g_signal_new (I_("move-selected"),
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkMenuShellClass, move_selected), G_STRUCT_OFFSET (GtkMenuShellClass, move_selected),
...@@ -327,36 +327,36 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) ...@@ -327,36 +327,36 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
"cancel", 0); "cancel", 0);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Return, 0, GDK_Return, 0,
"activate_current", 1, "activate-current", 1,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
TRUE); TRUE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_ISO_Enter, 0, GDK_ISO_Enter, 0,
"activate_current", 1, "activate-current", 1,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
TRUE); TRUE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Enter, 0, GDK_KP_Enter, 0,
"activate_current", 1, "activate-current", 1,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
TRUE); TRUE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_space, 0, GDK_space, 0,
"activate_current", 1, "activate-current", 1,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
FALSE); FALSE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Space, 0, GDK_KP_Space, 0,
"activate_current", 1, "activate-current", 1,
G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
FALSE); FALSE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_F10, 0, GDK_F10, 0,
"cycle_focus", 1, "cycle-focus", 1,
GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_FORWARD); GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_FORWARD);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_F10, GDK_SHIFT_MASK, GDK_F10, GDK_SHIFT_MASK,
"cycle_focus", 1, "cycle-focus", 1,
GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_BACKWARD); GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_BACKWARD);
/** /**
......
...@@ -839,7 +839,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -839,7 +839,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
GTK_PARAM_READABLE)); GTK_PARAM_READABLE));
notebook_signals[SWITCH_PAGE] = notebook_signals[SWITCH_PAGE] =
g_signal_new (I_("switch_page"), g_signal_new (I_("switch-page"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkNotebookClass, switch_page), G_STRUCT_OFFSET (GtkNotebookClass, switch_page),
...@@ -849,7 +849,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -849,7 +849,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
G_TYPE_POINTER, G_TYPE_POINTER,
G_TYPE_UINT); G_TYPE_UINT);
notebook_signals[FOCUS_TAB] = notebook_signals[FOCUS_TAB] =
g_signal_new (I_("focus_tab"), g_signal_new (I_("focus-tab"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, focus_tab), G_STRUCT_OFFSET (GtkNotebookClass, focus_tab),
...@@ -858,7 +858,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -858,7 +858,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN, 1,
GTK_TYPE_NOTEBOOK_TAB); GTK_TYPE_NOTEBOOK_TAB);
notebook_signals[SELECT_PAGE] = notebook_signals[SELECT_PAGE] =
g_signal_new (I_("select_page"), g_signal_new (I_("select-page"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, select_page), G_STRUCT_OFFSET (GtkNotebookClass, select_page),
...@@ -867,7 +867,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -867,7 +867,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN, 1,
G_TYPE_BOOLEAN); G_TYPE_BOOLEAN);
notebook_signals[CHANGE_CURRENT_PAGE] = notebook_signals[CHANGE_CURRENT_PAGE] =
g_signal_new (I_("change_current_page"), g_signal_new (I_("change-current-page"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, change_current_page), G_STRUCT_OFFSET (GtkNotebookClass, change_current_page),
...@@ -876,7 +876,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -876,7 +876,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
G_TYPE_BOOLEAN, 1, G_TYPE_BOOLEAN, 1,
G_TYPE_INT); G_TYPE_INT);
notebook_signals[MOVE_FOCUS_OUT] = notebook_signals[MOVE_FOCUS_OUT] =
g_signal_new (I_("move_focus_out"), g_signal_new (I_("move-focus-out"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, move_focus_out), G_STRUCT_OFFSET (GtkNotebookClass, move_focus_out),
...@@ -885,7 +885,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -885,7 +885,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
GTK_TYPE_DIRECTION_TYPE); GTK_TYPE_DIRECTION_TYPE);
notebook_signals[REORDER_TAB] = notebook_signals[REORDER_TAB] =
g_signal_new (I_("reorder_tab"), g_signal_new (I_("reorder-tab"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, reorder_tab), G_STRUCT_OFFSET (GtkNotebookClass, reorder_tab),
...@@ -906,7 +906,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -906,7 +906,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Since: 2.10 * Since: 2.10
**/ **/
notebook_signals[PAGE_REORDERED] = notebook_signals[PAGE_REORDERED] =
g_signal_new (I_("page_reordered"), g_signal_new (I_("page-reordered"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, NULL, NULL, 0, NULL, NULL,
...@@ -926,7 +926,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -926,7 +926,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Since: 2.10 * Since: 2.10
**/ **/
notebook_signals[PAGE_REMOVED] = notebook_signals[PAGE_REMOVED] =
g_signal_new (I_("page_removed"), g_signal_new (I_("page-removed"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, NULL, NULL, 0, NULL, NULL,
...@@ -946,7 +946,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -946,7 +946,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Since: 2.10 * Since: 2.10
**/ **/
notebook_signals[PAGE_ADDED] = notebook_signals[PAGE_ADDED] =
g_signal_new (I_("page_added"), g_signal_new (I_("page-added"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, NULL, NULL, 0, NULL, NULL,
...@@ -979,7 +979,7 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -979,7 +979,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* Since: 2.12 * Since: 2.12
*/ */
notebook_signals[CREATE_WINDOW] = notebook_signals[CREATE_WINDOW] =
g_signal_new (I_("create_window"), g_signal_new (I_("create-window"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkNotebookClass, create_window), G_STRUCT_OFFSET (GtkNotebookClass, create_window),
...@@ -991,46 +991,46 @@ gtk_notebook_class_init (GtkNotebookClass *class) ...@@ -991,46 +991,46 @@ gtk_notebook_class_init (GtkNotebookClass *class)
binding_set = gtk_binding_set_by_class (class); binding_set = gtk_binding_set_by_class (class);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_space, 0, GDK_space, 0,
"select_page", 1, "select-page", 1,
G_TYPE_BOOLEAN, FALSE); G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Space, 0, GDK_KP_Space, 0,
"select_page", 1, "select-page", 1,
G_TYPE_BOOLEAN, FALSE); G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Home, 0, GDK_Home, 0,
"focus_tab", 1, "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_FIRST); GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_FIRST);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_Home, 0, GDK_KP_Home, 0,
"focus_tab", 1, "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_FIRST); GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_FIRST);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_End, 0, GDK_End, 0,
"focus_tab", 1, "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_LAST); GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_LAST);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_KP_End, 0, GDK_KP_End, 0,
"focus_tab", 1, "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_LAST); GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_LAST);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Page_Up, GDK_CONTROL_MASK, GDK_Page_Up, GDK_CONTROL_MASK,
"change_current_page", 1, "change-current-page", 1,
G_TYPE_INT, -1); G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Page_Down, GDK_CONTROL_MASK, GDK_Page_Down, GDK_CONTROL_MASK,
"change_current_page", 1, "change-current-page", 1,
G_TYPE_INT, 1); G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Page_Up, GDK_CONTROL_MASK | GDK_MOD1_MASK, GDK_Page_Up, GDK_CONTROL_MASK | GDK_MOD1_MASK,
"change_current_page", 1, "change-current-page", 1,
G_TYPE_INT, -1); G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, gtk_binding_entry_add_signal (binding_set,
GDK_Page_Down, GDK_CONTROL_MASK | GDK_MOD1_MASK, GDK_Page_Down, GDK_CONTROL_MASK | GDK_MOD1_MASK,
"change_current_page", 1, "change-current-page", 1,
G_TYPE_INT, 1); G_TYPE_INT, 1);
add_arrow_bindings (binding_set, GDK_Up, GTK_DIR_UP); add_arrow_bindings (binding_set, GDK_Up, GTK_DIR_UP);
...@@ -1322,7 +1322,7 @@ gtk_notebook_move_focus_out (GtkNotebook *notebook, ...@@ -1322,7 +1322,7 @@ gtk_notebook_move_focus_out (GtkNotebook *notebook,
g_object_ref (notebook); g_object_ref (notebook);
notebook->focus_out = TRUE; notebook->focus_out = TRUE;
g_signal_emit_by_name (toplevel, "move_focus", direction_type); g_signal_emit_by_name (toplevel, "move-focus", direction_type);
notebook->focus_out = FALSE; notebook->focus_out = FALSE;
g_object_unref (notebook); g_object_unref (notebook);
...@@ -4108,7 +4108,7 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook, ...@@ -4108,7 +4108,7 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
page->mnemonic_activate_signal = page->mnemonic_activate_signal =
g_signal_connect (tab_label, g_signal_connect (tab_label,
"mnemonic_activate", "mnemonic-activate",
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page), G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook); notebook);
} }
...@@ -6938,7 +6938,7 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook, ...@@ -6938,7 +6938,7 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
if (page->tab_label) if (page->tab_label)
page->mnemonic_activate_signal = page->mnemonic_activate_signal =
g_signal_connect (page->tab_label, g_signal_connect (page->tab_label,
"mnemonic_activate", "mnemonic-activate",
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page), G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook); notebook);
......
...@@ -195,7 +195,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -195,7 +195,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_BOOL); GTK_TYPE_BOOL);
editable_signals[MOVE_CURSOR] = editable_signals[MOVE_CURSOR] =
gtk_signal_new (I_("move_cursor"), gtk_signal_new (I_("move-cursor"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_cursor), GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_cursor),
...@@ -205,7 +205,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -205,7 +205,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[MOVE_WORD] = editable_signals[MOVE_WORD] =
gtk_signal_new (I_("move_word"), gtk_signal_new (I_("move-word"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_word), GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_word),
...@@ -214,7 +214,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -214,7 +214,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[MOVE_PAGE] = editable_signals[MOVE_PAGE] =
gtk_signal_new (I_("move_page"), gtk_signal_new (I_("move-page"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_page), GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_page),
...@@ -224,7 +224,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -224,7 +224,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[MOVE_TO_ROW] = editable_signals[MOVE_TO_ROW] =
gtk_signal_new (I_("move_to_row"), gtk_signal_new (I_("move-to-row"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_to_row), GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_to_row),
...@@ -233,7 +233,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -233,7 +233,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[MOVE_TO_COLUMN] = editable_signals[MOVE_TO_COLUMN] =
gtk_signal_new (I_("move_to_column"), gtk_signal_new (I_("move-to-column"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_to_column), GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_to_column),
...@@ -242,7 +242,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -242,7 +242,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[KILL_CHAR] = editable_signals[KILL_CHAR] =
gtk_signal_new (I_("kill_char"), gtk_signal_new (I_("kill-char"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_char), GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_char),
...@@ -251,7 +251,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -251,7 +251,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[KILL_WORD] = editable_signals[KILL_WORD] =
gtk_signal_new (I_("kill_word"), gtk_signal_new (I_("kill-word"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_word), GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_word),
...@@ -260,7 +260,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -260,7 +260,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[KILL_LINE] = editable_signals[KILL_LINE] =
gtk_signal_new (I_("kill_line"), gtk_signal_new (I_("kill-line"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_line), GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_line),
...@@ -269,7 +269,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -269,7 +269,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_INT); GTK_TYPE_INT);
editable_signals[CUT_CLIPBOARD] = editable_signals[CUT_CLIPBOARD] =
gtk_signal_new (I_("cut_clipboard"), gtk_signal_new (I_("cut-clipboard"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, cut_clipboard), GTK_SIGNAL_OFFSET (GtkOldEditableClass, cut_clipboard),
...@@ -277,7 +277,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -277,7 +277,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_NONE, 0); GTK_TYPE_NONE, 0);
editable_signals[COPY_CLIPBOARD] = editable_signals[COPY_CLIPBOARD] =
gtk_signal_new (I_("copy_clipboard"), gtk_signal_new (I_("copy-clipboard"),
GTK_RUN_LAST | GTK_RUN_ACTION, GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class), GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, copy_clipboard), GTK_SIGNAL_OFFSET (GtkOldEditableClass, copy_clipboard),
...@@ -285,7 +285,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class) ...@@ -285,7 +285,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_TYPE_NONE, 0); GTK_TYPE_NONE, 0);
editable_signals[PASTE_CLIPBOARD] =