gtk+ r21063 - in trunk: . gtk
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21063 - in trunk: . gtk
- Date: Mon, 11 Aug 2008 11:52:06 +0000 (UTC)
Author: neo
Date: Mon Aug 11 11:52:06 2008
New Revision: 21063
URL: http://svn.gnome.org/viewvc/gtk+?rev=21063&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/gtk/gtkmenu.c
trunk/gtk/gtkmenuitem.c
trunk/gtk/gtkmenushell.c
trunk/gtk/gtknotebook.c
trunk/gtk/gtkoldeditable.c
trunk/gtk/gtkpaned.c
Modified: trunk/gtk/gtkmenu.c
==============================================================================
--- trunk/gtk/gtkmenu.c (original)
+++ trunk/gtk/gtkmenu.c Mon Aug 11 11:52:06 2008
@@ -479,7 +479,7 @@
menu_shell_class->move_current = gtk_menu_move_current;
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_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_CALLBACK (gtk_menu_real_move_scroll),
@@ -668,82 +668,82 @@
binding_set = gtk_binding_set_by_class (class);
gtk_binding_entry_add_signal (binding_set,
GDK_Up, 0,
- I_("move_current"), 1,
+ I_("move-current"), 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PREV);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Up, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PREV);
gtk_binding_entry_add_signal (binding_set,
GDK_Down, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_NEXT);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Down, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_NEXT);
gtk_binding_entry_add_signal (binding_set,
GDK_Left, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PARENT);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Left, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_PARENT);
gtk_binding_entry_add_signal (binding_set,
GDK_Right, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_CHILD);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Right, 0,
- "move_current", 1,
+ "move-current", 1,
GTK_TYPE_MENU_DIRECTION_TYPE,
GTK_MENU_DIR_CHILD);
gtk_binding_entry_add_signal (binding_set,
GDK_Home, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_START);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Home, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_START);
gtk_binding_entry_add_signal (binding_set,
GDK_End, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_END);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_End, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_END);
gtk_binding_entry_add_signal (binding_set,
GDK_Page_Up, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_UP);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Page_Up, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_UP);
gtk_binding_entry_add_signal (binding_set,
GDK_Page_Down, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_DOWN);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Page_Down, 0,
- "move_scroll", 1,
+ "move-scroll", 1,
GTK_TYPE_SCROLL_TYPE,
GTK_SCROLL_PAGE_DOWN);
@@ -1146,7 +1146,7 @@
data = g_slice_new (GtkMenuAttachData);
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);
attach_widget_screen_changed (attach_widget, NULL, menu);
@@ -1990,7 +1990,7 @@
height/2,
height));
g_object_connect (menu->tearoff_adjustment,
- "signal::value_changed", gtk_menu_scrollbar_changed, menu,
+ "signal::value-changed", gtk_menu_scrollbar_changed, menu,
NULL);
menu->tearoff_scrollbar = gtk_vscrollbar_new (menu->tearoff_adjustment);
Modified: trunk/gtk/gtkmenuitem.c
==============================================================================
--- trunk/gtk/gtkmenuitem.c (original)
+++ trunk/gtk/gtkmenuitem.c Mon Aug 11 11:52:06 2008
@@ -163,7 +163,7 @@
widget_class->activate_signal = menu_item_signals[ACTIVATE];
menu_item_signals[ACTIVATE_ITEM] =
- g_signal_new (I_("activate_item"),
+ g_signal_new (I_("activate-item"),
G_OBJECT_CLASS_TYPE (gobject_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuItemClass, activate_item),
@@ -172,7 +172,7 @@
G_TYPE_NONE, 0);
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_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuItemClass, toggle_size_request),
@@ -182,7 +182,7 @@
G_TYPE_POINTER);
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_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GtkMenuItemClass, toggle_size_allocate),
Modified: trunk/gtk/gtkmenushell.c
==============================================================================
--- trunk/gtk/gtkmenushell.c (original)
+++ trunk/gtk/gtkmenushell.c Mon Aug 11 11:52:06 2008
@@ -261,7 +261,7 @@
G_TYPE_NONE, 0);
menu_shell_signals[MOVE_CURRENT] =
- g_signal_new (I_("move_current"),
+ g_signal_new (I_("move-current"),
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkMenuShellClass, move_current),
@@ -271,7 +271,7 @@
GTK_TYPE_MENU_DIRECTION_TYPE);
menu_shell_signals[ACTIVATE_CURRENT] =
- g_signal_new (I_("activate_current"),
+ g_signal_new (I_("activate-current"),
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkMenuShellClass, activate_current),
@@ -290,7 +290,7 @@
G_TYPE_NONE, 0);
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_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_CALLBACK (gtk_real_menu_shell_cycle_focus),
@@ -312,7 +312,7 @@
* Since: 2.12
*/
menu_shell_signals[MOVE_SELECTED] =
- g_signal_new (I_("move_selected"),
+ g_signal_new (I_("move-selected"),
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkMenuShellClass, move_selected),
@@ -327,36 +327,36 @@
"cancel", 0);
gtk_binding_entry_add_signal (binding_set,
GDK_Return, 0,
- "activate_current", 1,
+ "activate-current", 1,
G_TYPE_BOOLEAN,
TRUE);
gtk_binding_entry_add_signal (binding_set,
GDK_ISO_Enter, 0,
- "activate_current", 1,
+ "activate-current", 1,
G_TYPE_BOOLEAN,
TRUE);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Enter, 0,
- "activate_current", 1,
+ "activate-current", 1,
G_TYPE_BOOLEAN,
TRUE);
gtk_binding_entry_add_signal (binding_set,
GDK_space, 0,
- "activate_current", 1,
+ "activate-current", 1,
G_TYPE_BOOLEAN,
FALSE);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Space, 0,
- "activate_current", 1,
+ "activate-current", 1,
G_TYPE_BOOLEAN,
FALSE);
gtk_binding_entry_add_signal (binding_set,
GDK_F10, 0,
- "cycle_focus", 1,
+ "cycle-focus", 1,
GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_FORWARD);
gtk_binding_entry_add_signal (binding_set,
GDK_F10, GDK_SHIFT_MASK,
- "cycle_focus", 1,
+ "cycle-focus", 1,
GTK_TYPE_DIRECTION_TYPE, GTK_DIR_TAB_BACKWARD);
/**
Modified: trunk/gtk/gtknotebook.c
==============================================================================
--- trunk/gtk/gtknotebook.c (original)
+++ trunk/gtk/gtknotebook.c Mon Aug 11 11:52:06 2008
@@ -839,7 +839,7 @@
GTK_PARAM_READABLE));
notebook_signals[SWITCH_PAGE] =
- g_signal_new (I_("switch_page"),
+ g_signal_new (I_("switch-page"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkNotebookClass, switch_page),
@@ -849,7 +849,7 @@
G_TYPE_POINTER,
G_TYPE_UINT);
notebook_signals[FOCUS_TAB] =
- g_signal_new (I_("focus_tab"),
+ g_signal_new (I_("focus-tab"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, focus_tab),
@@ -858,7 +858,7 @@
G_TYPE_BOOLEAN, 1,
GTK_TYPE_NOTEBOOK_TAB);
notebook_signals[SELECT_PAGE] =
- g_signal_new (I_("select_page"),
+ g_signal_new (I_("select-page"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, select_page),
@@ -867,7 +867,7 @@
G_TYPE_BOOLEAN, 1,
G_TYPE_BOOLEAN);
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_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, change_current_page),
@@ -876,7 +876,7 @@
G_TYPE_BOOLEAN, 1,
G_TYPE_INT);
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_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, move_focus_out),
@@ -885,7 +885,7 @@
G_TYPE_NONE, 1,
GTK_TYPE_DIRECTION_TYPE);
notebook_signals[REORDER_TAB] =
- g_signal_new (I_("reorder_tab"),
+ g_signal_new (I_("reorder-tab"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkNotebookClass, reorder_tab),
@@ -906,7 +906,7 @@
* Since: 2.10
**/
notebook_signals[PAGE_REORDERED] =
- g_signal_new (I_("page_reordered"),
+ g_signal_new (I_("page-reordered"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
@@ -926,7 +926,7 @@
* Since: 2.10
**/
notebook_signals[PAGE_REMOVED] =
- g_signal_new (I_("page_removed"),
+ g_signal_new (I_("page-removed"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
@@ -946,7 +946,7 @@
* Since: 2.10
**/
notebook_signals[PAGE_ADDED] =
- g_signal_new (I_("page_added"),
+ g_signal_new (I_("page-added"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
@@ -979,7 +979,7 @@
* Since: 2.12
*/
notebook_signals[CREATE_WINDOW] =
- g_signal_new (I_("create_window"),
+ g_signal_new (I_("create-window"),
G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkNotebookClass, create_window),
@@ -991,46 +991,46 @@
binding_set = gtk_binding_set_by_class (class);
gtk_binding_entry_add_signal (binding_set,
GDK_space, 0,
- "select_page", 1,
+ "select-page", 1,
G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Space, 0,
- "select_page", 1,
+ "select-page", 1,
G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set,
GDK_Home, 0,
- "focus_tab", 1,
+ "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_FIRST);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Home, 0,
- "focus_tab", 1,
+ "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_FIRST);
gtk_binding_entry_add_signal (binding_set,
GDK_End, 0,
- "focus_tab", 1,
+ "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_LAST);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_End, 0,
- "focus_tab", 1,
+ "focus-tab", 1,
GTK_TYPE_NOTEBOOK_TAB, GTK_NOTEBOOK_TAB_LAST);
gtk_binding_entry_add_signal (binding_set,
GDK_Page_Up, GDK_CONTROL_MASK,
- "change_current_page", 1,
+ "change-current-page", 1,
G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set,
GDK_Page_Down, GDK_CONTROL_MASK,
- "change_current_page", 1,
+ "change-current-page", 1,
G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set,
GDK_Page_Up, GDK_CONTROL_MASK | GDK_MOD1_MASK,
- "change_current_page", 1,
+ "change-current-page", 1,
G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set,
GDK_Page_Down, GDK_CONTROL_MASK | GDK_MOD1_MASK,
- "change_current_page", 1,
+ "change-current-page", 1,
G_TYPE_INT, 1);
add_arrow_bindings (binding_set, GDK_Up, GTK_DIR_UP);
@@ -1322,7 +1322,7 @@
g_object_ref (notebook);
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;
g_object_unref (notebook);
@@ -4108,7 +4108,7 @@
page->mnemonic_activate_signal =
g_signal_connect (tab_label,
- "mnemonic_activate",
+ "mnemonic-activate",
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
}
@@ -6938,7 +6938,7 @@
if (page->tab_label)
page->mnemonic_activate_signal =
g_signal_connect (page->tab_label,
- "mnemonic_activate",
+ "mnemonic-activate",
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
Modified: trunk/gtk/gtkoldeditable.c
==============================================================================
--- trunk/gtk/gtkoldeditable.c (original)
+++ trunk/gtk/gtkoldeditable.c Mon Aug 11 11:52:06 2008
@@ -195,7 +195,7 @@
GTK_TYPE_BOOL);
editable_signals[MOVE_CURSOR] =
- gtk_signal_new (I_("move_cursor"),
+ gtk_signal_new (I_("move-cursor"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_cursor),
@@ -205,7 +205,7 @@
GTK_TYPE_INT);
editable_signals[MOVE_WORD] =
- gtk_signal_new (I_("move_word"),
+ gtk_signal_new (I_("move-word"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_word),
@@ -214,7 +214,7 @@
GTK_TYPE_INT);
editable_signals[MOVE_PAGE] =
- gtk_signal_new (I_("move_page"),
+ gtk_signal_new (I_("move-page"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_page),
@@ -224,7 +224,7 @@
GTK_TYPE_INT);
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_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_to_row),
@@ -233,7 +233,7 @@
GTK_TYPE_INT);
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_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, move_to_column),
@@ -242,7 +242,7 @@
GTK_TYPE_INT);
editable_signals[KILL_CHAR] =
- gtk_signal_new (I_("kill_char"),
+ gtk_signal_new (I_("kill-char"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_char),
@@ -251,7 +251,7 @@
GTK_TYPE_INT);
editable_signals[KILL_WORD] =
- gtk_signal_new (I_("kill_word"),
+ gtk_signal_new (I_("kill-word"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_word),
@@ -260,7 +260,7 @@
GTK_TYPE_INT);
editable_signals[KILL_LINE] =
- gtk_signal_new (I_("kill_line"),
+ gtk_signal_new (I_("kill-line"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, kill_line),
@@ -269,7 +269,7 @@
GTK_TYPE_INT);
editable_signals[CUT_CLIPBOARD] =
- gtk_signal_new (I_("cut_clipboard"),
+ gtk_signal_new (I_("cut-clipboard"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, cut_clipboard),
@@ -277,7 +277,7 @@
GTK_TYPE_NONE, 0);
editable_signals[COPY_CLIPBOARD] =
- gtk_signal_new (I_("copy_clipboard"),
+ gtk_signal_new (I_("copy-clipboard"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, copy_clipboard),
@@ -285,7 +285,7 @@
GTK_TYPE_NONE, 0);
editable_signals[PASTE_CLIPBOARD] =
- gtk_signal_new (I_("paste_clipboard"),
+ gtk_signal_new (I_("paste-clipboard"),
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, paste_clipboard),
@@ -402,7 +402,7 @@
text[new_text_length] = '\0';
strncpy (text, new_text, new_text_length);
- g_signal_emit_by_name (editable, "insert_text", text, new_text_length,
+ g_signal_emit_by_name (editable, "insert-text", text, new_text_length,
position);
g_signal_emit_by_name (editable, "changed");
@@ -421,7 +421,7 @@
g_object_ref (old_editable);
- g_signal_emit_by_name (editable, "delete_text", start_pos, end_pos);
+ g_signal_emit_by_name (editable, "delete-text", start_pos, end_pos);
g_signal_emit_by_name (editable, "changed");
if (old_editable->selection_start_pos == old_editable->selection_end_pos &&
Modified: trunk/gtk/gtkpaned.c
==============================================================================
--- trunk/gtk/gtkpaned.c (original)
+++ trunk/gtk/gtkpaned.c Mon Aug 11 11:52:06 2008
@@ -319,7 +319,7 @@
* Since: 2.0
*/
signals [CYCLE_CHILD_FOCUS] =
- g_signal_new (I_("cycle_child_focus"),
+ g_signal_new (I_("cycle-child-focus"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkPanedClass, cycle_child_focus),
@@ -342,7 +342,7 @@
* Since: 2.0
*/
signals [TOGGLE_HANDLE_FOCUS] =
- g_signal_new (I_("toggle_handle_focus"),
+ g_signal_new (I_("toggle-handle-focus"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkPanedClass, toggle_handle_focus),
@@ -363,7 +363,7 @@
* Since: 2.0
*/
signals[MOVE_HANDLE] =
- g_signal_new (I_("move_handle"),
+ g_signal_new (I_("move-handle"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkPanedClass, move_handle),
@@ -387,7 +387,7 @@
* Since: 2.0
*/
signals [CYCLE_HANDLE_FOCUS] =
- g_signal_new (I_("cycle_handle_focus"),
+ g_signal_new (I_("cycle-handle-focus"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkPanedClass, cycle_handle_focus),
@@ -410,7 +410,7 @@
* Since: 2.0
*/
signals [ACCEPT_POSITION] =
- g_signal_new (I_("accept_position"),
+ g_signal_new (I_("accept-position"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkPanedClass, accept_position),
@@ -433,7 +433,7 @@
* Since: 2.0
*/
signals [CANCEL_POSITION] =
- g_signal_new (I_("cancel_position"),
+ g_signal_new (I_("cancel-position"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GtkPanedClass, cancel_position),
@@ -446,22 +446,22 @@
/* F6 and friends */
gtk_binding_entry_add_signal (binding_set,
GDK_F6, 0,
- "cycle_child_focus", 1,
+ "cycle-child-focus", 1,
G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set,
GDK_F6, GDK_SHIFT_MASK,
- "cycle_child_focus", 1,
+ "cycle-child-focus", 1,
G_TYPE_BOOLEAN, TRUE);
/* F8 and friends */
gtk_binding_entry_add_signal (binding_set,
GDK_F8, 0,
- "cycle_handle_focus", 1,
+ "cycle-handle-focus", 1,
G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set,
GDK_F8, GDK_SHIFT_MASK,
- "cycle_handle_focus", 1,
+ "cycle-handle-focus", 1,
G_TYPE_BOOLEAN, TRUE);
add_tab_bindings (binding_set, 0);
@@ -472,23 +472,23 @@
/* accept and cancel positions */
gtk_binding_entry_add_signal (binding_set,
GDK_Escape, 0,
- "cancel_position", 0);
+ "cancel-position", 0);
gtk_binding_entry_add_signal (binding_set,
GDK_Return, 0,
- "accept_position", 0);
+ "accept-position", 0);
gtk_binding_entry_add_signal (binding_set,
GDK_ISO_Enter, 0,
- "accept_position", 0);
+ "accept-position", 0);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Enter, 0,
- "accept_position", 0);
+ "accept-position", 0);
gtk_binding_entry_add_signal (binding_set,
GDK_space, 0,
- "accept_position", 0);
+ "accept-position", 0);
gtk_binding_entry_add_signal (binding_set,
GDK_KP_Space, 0,
- "accept_position", 0);
+ "accept-position", 0);
/* move handle */
add_move_binding (binding_set, GDK_Left, 0, GTK_SCROLL_STEP_LEFT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]