summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2008-08-11 11:52:06 +0000
committerSven Neumann <neo@src.gnome.org>2008-08-11 11:52:06 +0000
commit9cf66a8a9cdff2d29d80a57276a7c30736d90f8c (patch)
tree1a4b394ec0ca938cfdc4b6f1cadf90b656ea5a34 /gtk
parent36b3bed631c5f462b5ed5d3f1ab3f37636285c05 (diff)
downloadgtk+-9cf66a8a9cdff2d29d80a57276a7c30736d90f8c.tar.gz
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
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkmenu.c38
-rw-r--r--gtk/gtkmenuitem.c6
-rw-r--r--gtk/gtkmenushell.c22
-rw-r--r--gtk/gtknotebook.c46
-rw-r--r--gtk/gtkoldeditable.c26
-rw-r--r--gtk/gtkpaned.c32
6 files changed, 85 insertions, 85 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index f3fab0571c..70451bd9c0 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -479,7 +479,7 @@ gtk_menu_class_init (GtkMenuClass *class)
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 @@ gtk_menu_class_init (GtkMenuClass *class)
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 @@ gtk_menu_attach_to_widget (GtkMenu *menu,
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 @@ gtk_menu_set_tearoff_state (GtkMenu *menu,
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);
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index a59b340752..20612d7b77 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -163,7 +163,7 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
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 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
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 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
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),
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c
index 79a250b341..b0804a9489 100644
--- a/gtk/gtkmenushell.c
+++ b/gtk/gtkmenushell.c
@@ -261,7 +261,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
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_menu_shell_class_init (GtkMenuShellClass *klass)
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 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
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 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
* 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 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
"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);
/**
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index c65df4372d..51e4536bcd 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -839,7 +839,7 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* 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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* 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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* 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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* 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 @@ gtk_notebook_class_init (GtkNotebookClass *class)
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 @@ gtk_notebook_move_focus_out (GtkNotebook *notebook,
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 @@ gtk_notebook_real_insert_page (GtkNotebook *notebook,
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 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
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);
diff --git a/gtk/gtkoldeditable.c b/gtk/gtkoldeditable.c
index b454affab2..7fb83cdf8c 100644
--- a/gtk/gtkoldeditable.c
+++ b/gtk/gtkoldeditable.c
@@ -195,7 +195,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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_old_editable_class_init (GtkOldEditableClass *class)
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 @@ gtk_old_editable_insert_text (GtkEditable *editable,
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 @@ gtk_old_editable_delete_text (GtkEditable *editable,
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 &&
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index bd48803f4b..400111ab29 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -319,7 +319,7 @@ gtk_paned_class_init (GtkPanedClass *class)
* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
/* 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 @@ gtk_paned_class_init (GtkPanedClass *class)
/* 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);