Commit d721a8f2 authored by William Jon McCann's avatar William Jon McCann
parent 898573b6
...@@ -1835,7 +1835,7 @@ eel_canvas_accessible_adjustment_changed (GtkAdjustment *adjustment, ...@@ -1835,7 +1835,7 @@ eel_canvas_accessible_adjustment_changed (GtkAdjustment *adjustment,
/* The scrollbars have changed */ /* The scrollbars have changed */
atk_obj = ATK_OBJECT (data); atk_obj = ATK_OBJECT (data);
g_signal_emit_by_name (atk_obj, "visible_data_changed"); g_signal_emit_by_name (atk_obj, "visible-data-changed");
} }
static void static void
...@@ -1850,11 +1850,11 @@ eel_canvas_accessible_initialize (AtkObject *obj, ...@@ -1850,11 +1850,11 @@ eel_canvas_accessible_initialize (AtkObject *obj,
gtk_accessible_set_widget (GTK_ACCESSIBLE (obj), GTK_WIDGET (data)); gtk_accessible_set_widget (GTK_ACCESSIBLE (obj), GTK_WIDGET (data));
g_signal_connect (gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (canvas)), g_signal_connect (gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (canvas)),
"value_changed", "value-changed",
G_CALLBACK (eel_canvas_accessible_adjustment_changed), G_CALLBACK (eel_canvas_accessible_adjustment_changed),
obj); obj);
g_signal_connect (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (canvas)), g_signal_connect (gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (canvas)),
"value_changed", "value-changed",
G_CALLBACK (eel_canvas_accessible_adjustment_changed), G_CALLBACK (eel_canvas_accessible_adjustment_changed),
obj); obj);
...@@ -1972,7 +1972,7 @@ eel_canvas_class_init (EelCanvasClass *klass) ...@@ -1972,7 +1972,7 @@ eel_canvas_class_init (EelCanvasClass *klass)
klass->request_update = eel_canvas_request_update_real; klass->request_update = eel_canvas_request_update_real;
canvas_signals[DRAW_BACKGROUND] = canvas_signals[DRAW_BACKGROUND] =
g_signal_new ("draw_background", g_signal_new ("draw-background",
G_TYPE_FROM_CLASS (klass), G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (EelCanvasClass, draw_background), G_STRUCT_OFFSET (EelCanvasClass, draw_background),
...@@ -2300,9 +2300,9 @@ scroll_to (EelCanvas *canvas, int cx, int cy) ...@@ -2300,9 +2300,9 @@ scroll_to (EelCanvas *canvas, int cx, int cy)
/* Signal GtkLayout that it should do a redraw. */ /* Signal GtkLayout that it should do a redraw. */
if (changed_x) if (changed_x)
g_signal_emit_by_name (hadjustment, "value_changed"); g_signal_emit_by_name (hadjustment, "value-changed");
if (changed_y) if (changed_y)
g_signal_emit_by_name (vadjustment, "value_changed"); g_signal_emit_by_name (vadjustment, "value-changed");
} }
/* Size allocation handler for the canvas */ /* Size allocation handler for the canvas */
......
...@@ -190,14 +190,14 @@ add_move_binding (GtkBindingSet *binding_set, ...@@ -190,14 +190,14 @@ add_move_binding (GtkBindingSet *binding_set,
g_assert ((modmask & GDK_SHIFT_MASK) == 0); g_assert ((modmask & GDK_SHIFT_MASK) == 0);
gtk_binding_entry_add_signal (binding_set, keyval, modmask, gtk_binding_entry_add_signal (binding_set, keyval, modmask,
"move_cursor", 3, "move-cursor", 3,
G_TYPE_ENUM, step, G_TYPE_ENUM, step,
G_TYPE_INT, count, G_TYPE_INT, count,
G_TYPE_BOOLEAN, FALSE); G_TYPE_BOOLEAN, FALSE);
/* Selection-extending version */ /* Selection-extending version */
gtk_binding_entry_add_signal (binding_set, keyval, modmask | GDK_SHIFT_MASK, gtk_binding_entry_add_signal (binding_set, keyval, modmask | GDK_SHIFT_MASK,
"move_cursor", 3, "move-cursor", 3,
G_TYPE_ENUM, step, G_TYPE_ENUM, step,
G_TYPE_INT, count, G_TYPE_INT, count,
G_TYPE_BOOLEAN, TRUE); G_TYPE_BOOLEAN, TRUE);
...@@ -244,7 +244,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -244,7 +244,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
gtk_widget_class_set_accessible_type (widget_class, eel_editable_label_accessible_get_type ()); gtk_widget_class_set_accessible_type (widget_class, eel_editable_label_accessible_get_type ());
signals[MOVE_CURSOR] = signals[MOVE_CURSOR] =
g_signal_new ("move_cursor", g_signal_new ("move-cursor",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EelEditableLabelClass, move_cursor), G_STRUCT_OFFSET (EelEditableLabelClass, move_cursor),
...@@ -253,7 +253,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -253,7 +253,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
G_TYPE_NONE, 3, GTK_TYPE_MOVEMENT_STEP, G_TYPE_INT, G_TYPE_BOOLEAN); G_TYPE_NONE, 3, GTK_TYPE_MOVEMENT_STEP, G_TYPE_INT, G_TYPE_BOOLEAN);
signals[COPY_CLIPBOARD] = signals[COPY_CLIPBOARD] =
g_signal_new ("copy_clipboard", g_signal_new ("copy-clipboard",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EelEditableLabelClass, copy_clipboard), G_STRUCT_OFFSET (EelEditableLabelClass, copy_clipboard),
...@@ -262,7 +262,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -262,7 +262,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
signals[POPULATE_POPUP] = signals[POPULATE_POPUP] =
g_signal_new ("populate_popup", g_signal_new ("populate-popup",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (EelEditableLabelClass, populate_popup), G_STRUCT_OFFSET (EelEditableLabelClass, populate_popup),
...@@ -271,7 +271,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -271,7 +271,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
G_TYPE_NONE, 1, GTK_TYPE_MENU); G_TYPE_NONE, 1, GTK_TYPE_MENU);
signals[DELETE_FROM_CURSOR] = signals[DELETE_FROM_CURSOR] =
g_signal_new ("delete_from_cursor", g_signal_new ("delete-from-cursor",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EelEditableLabelClass, delete_from_cursor), G_STRUCT_OFFSET (EelEditableLabelClass, delete_from_cursor),
...@@ -280,7 +280,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -280,7 +280,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
G_TYPE_NONE, 2, GTK_TYPE_DELETE_TYPE, G_TYPE_INT); G_TYPE_NONE, 2, GTK_TYPE_DELETE_TYPE, G_TYPE_INT);
signals[CUT_CLIPBOARD] = signals[CUT_CLIPBOARD] =
g_signal_new ("cut_clipboard", g_signal_new ("cut-clipboard",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EelEditableLabelClass, cut_clipboard), G_STRUCT_OFFSET (EelEditableLabelClass, cut_clipboard),
...@@ -289,7 +289,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -289,7 +289,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
signals[PASTE_CLIPBOARD] = signals[PASTE_CLIPBOARD] =
g_signal_new ("paste_clipboard", g_signal_new ("paste-clipboard",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EelEditableLabelClass, paste_clipboard), G_STRUCT_OFFSET (EelEditableLabelClass, paste_clipboard),
...@@ -298,7 +298,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -298,7 +298,7 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
signals[TOGGLE_OVERWRITE] = signals[TOGGLE_OVERWRITE] =
g_signal_new ("toggle_overwrite", g_signal_new ("toggle-overwrite",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EelEditableLabelClass, toggle_overwrite), G_STRUCT_OFFSET (EelEditableLabelClass, toggle_overwrite),
...@@ -439,74 +439,74 @@ eel_editable_label_class_init (EelEditableLabelClass *class) ...@@ -439,74 +439,74 @@ eel_editable_label_class_init (EelEditableLabelClass *class)
/* Select all /* Select all
*/ */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK,
"move_cursor", 3, "move-cursor", 3,
GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_BUFFER_ENDS, GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_BUFFER_ENDS,
G_TYPE_INT, -1, G_TYPE_INT, -1,
G_TYPE_BOOLEAN, FALSE); G_TYPE_BOOLEAN, FALSE);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_a, GDK_CONTROL_MASK,
"move_cursor", 3, "move-cursor", 3,
GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_BUFFER_ENDS, GTK_TYPE_MOVEMENT_STEP, GTK_MOVEMENT_BUFFER_ENDS,
G_TYPE_INT, 1, G_TYPE_INT, 1,
G_TYPE_BOOLEAN, TRUE); G_TYPE_BOOLEAN, TRUE);
/* Deleting text */ /* Deleting text */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, 0,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_CHARS, G_TYPE_ENUM, GTK_DELETE_CHARS,
G_TYPE_INT, 1); G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, 0,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_CHARS, G_TYPE_ENUM, GTK_DELETE_CHARS,
G_TYPE_INT, 1); G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, 0,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_CHARS, G_TYPE_ENUM, GTK_DELETE_CHARS,
G_TYPE_INT, -1); G_TYPE_INT, -1);
/* Make this do the same as Backspace, to help with mis-typing */ /* Make this do the same as Backspace, to help with mis-typing */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, GDK_SHIFT_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, GDK_SHIFT_MASK,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_CHARS, G_TYPE_ENUM, GTK_DELETE_CHARS,
G_TYPE_INT, -1); G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_CONTROL_MASK,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_WORD_ENDS, G_TYPE_ENUM, GTK_DELETE_WORD_ENDS,
G_TYPE_INT, 1); G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Delete, GDK_CONTROL_MASK,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_WORD_ENDS, G_TYPE_ENUM, GTK_DELETE_WORD_ENDS,
G_TYPE_INT, 1); G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_BackSpace, GDK_CONTROL_MASK,
"delete_from_cursor", 2, "delete-from-cursor", 2,
G_TYPE_ENUM, GTK_DELETE_WORD_ENDS, G_TYPE_ENUM, GTK_DELETE_WORD_ENDS,
G_TYPE_INT, -1); G_TYPE_INT, -1);
/* Cut/copy/paste */ /* Cut/copy/paste */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_x, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_x, GDK_CONTROL_MASK,
"cut_clipboard", 0); "cut-clipboard", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_c, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_c, GDK_CONTROL_MASK,
"copy_clipboard", 0); "copy-clipboard", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_v, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_v, GDK_CONTROL_MASK,
"paste_clipboard", 0); "paste-clipboard", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_SHIFT_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_Delete, GDK_SHIFT_MASK,
"cut_clipboard", 0); "cut-clipboard", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_CONTROL_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_CONTROL_MASK,
"copy_clipboard", 0); "copy-clipboard", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK, gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK,
"paste_clipboard", 0); "paste-clipboard", 0);
/* Overwrite */ /* Overwrite */
gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, 0,
"toggle_overwrite", 0); "toggle-overwrite", 0);
gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, 0, gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Insert, 0,
"toggle_overwrite", 0); "toggle-overwrite", 0);
} }
static void static void
...@@ -614,11 +614,11 @@ eel_editable_label_init (EelEditableLabel *label) ...@@ -614,11 +614,11 @@ eel_editable_label_init (EelEditableLabel *label)
g_signal_connect (G_OBJECT (label->im_context), "commit", g_signal_connect (G_OBJECT (label->im_context), "commit",
G_CALLBACK (eel_editable_label_commit_cb), label); G_CALLBACK (eel_editable_label_commit_cb), label);
g_signal_connect (G_OBJECT (label->im_context), "preedit_changed", g_signal_connect (G_OBJECT (label->im_context), "preedit-changed",
G_CALLBACK (eel_editable_label_preedit_changed_cb), label); G_CALLBACK (eel_editable_label_preedit_changed_cb), label);
g_signal_connect (G_OBJECT (label->im_context), "retrieve_surrounding", g_signal_connect (G_OBJECT (label->im_context), "retrieve-surrounding",
G_CALLBACK (eel_editable_label_retrieve_surrounding_cb), label); G_CALLBACK (eel_editable_label_retrieve_surrounding_cb), label);
g_signal_connect (G_OBJECT (label->im_context), "delete_surrounding", g_signal_connect (G_OBJECT (label->im_context), "delete-surrounding",
G_CALLBACK (eel_editable_label_delete_surrounding_cb), label); G_CALLBACK (eel_editable_label_delete_surrounding_cb), label);
} }
...@@ -2207,7 +2207,7 @@ eel_editable_label_focus_in (GtkWidget *widget, ...@@ -2207,7 +2207,7 @@ eel_editable_label_focus_in (GtkWidget *widget,
gtk_im_context_focus_in (label->im_context); gtk_im_context_focus_in (label->im_context);
g_signal_connect (gdk_keymap_get_default (), g_signal_connect (gdk_keymap_get_default (),
"direction_changed", "direction-changed",
G_CALLBACK (eel_editable_label_keymap_direction_changed), label); G_CALLBACK (eel_editable_label_keymap_direction_changed), label);
eel_editable_label_check_cursor_blink (label); eel_editable_label_check_cursor_blink (label);
...@@ -3078,11 +3078,11 @@ popup_targets_received (GtkClipboard *clipboard, ...@@ -3078,11 +3078,11 @@ popup_targets_received (GtkClipboard *clipboard,
clipboard_contains_text = gtk_selection_data_targets_include_text (data); clipboard_contains_text = gtk_selection_data_targets_include_text (data);
append_action_signal (label, label->popup_menu, GTK_STOCK_CUT, "cut_clipboard", append_action_signal (label, label->popup_menu, GTK_STOCK_CUT, "cut-clipboard",
have_selection); have_selection);
append_action_signal (label, label->popup_menu, GTK_STOCK_COPY, "copy_clipboard", append_action_signal (label, label->popup_menu, GTK_STOCK_COPY, "copy-clipboard",
have_selection); have_selection);
append_action_signal (label, label->popup_menu, GTK_STOCK_PASTE, "paste_clipboard", append_action_signal (label, label->popup_menu, GTK_STOCK_PASTE, "paste-clipboard",
clipboard_contains_text); clipboard_contains_text);
menuitem = gtk_menu_item_new_with_label (_("Select All")); menuitem = gtk_menu_item_new_with_label (_("Select All"));
...@@ -3184,7 +3184,7 @@ editable_insert_text_emit (GtkEditable *editable, ...@@ -3184,7 +3184,7 @@ editable_insert_text_emit (GtkEditable *editable,
text[new_text_length] = '\0'; text[new_text_length] = '\0';
strncpy (text, new_text, new_text_length); strncpy (text, new_text, new_text_length);
g_signal_emit_by_name (editable, "insert_text", text, new_text_length, position); g_signal_emit_by_name (editable, "insert-text", text, new_text_length, position);
if (new_text_length > 63) if (new_text_length > 63)
g_free (text); g_free (text);
...@@ -3211,7 +3211,7 @@ editable_delete_text_emit (GtkEditable *editable, ...@@ -3211,7 +3211,7 @@ editable_delete_text_emit (GtkEditable *editable,
g_object_ref (G_OBJECT (editable)); g_object_ref (G_OBJECT (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_object_unref (G_OBJECT (editable)); g_object_unref (G_OBJECT (editable));
} }
...@@ -4036,7 +4036,7 @@ eel_editable_label_accessible_insert_text_cb (EelEditableLabel *label, ...@@ -4036,7 +4036,7 @@ eel_editable_label_accessible_insert_text_cb (EelEditableLabel *label,
if (!priv->signal_name) if (!priv->signal_name)
{ {
priv->signal_name = "text_changed::insert"; priv->signal_name = "text-changed::insert";
priv->position = *position; priv->position = *position;
priv->length = arg2; priv->length = arg2;
} }
...@@ -4065,7 +4065,7 @@ eel_editable_label_accessible_delete_text_cb (EelEditableLabel *label, ...@@ -4065,7 +4065,7 @@ eel_editable_label_accessible_delete_text_cb (EelEditableLabel *label,
if (arg2 - arg1 == 0) if (arg2 - arg1 == 0)
return; return;
g_signal_emit_by_name (accessible, "text_changed::delete", arg1, arg2 - arg1); g_signal_emit_by_name (accessible, "text-changed::delete", arg1, arg2 - arg1);
} }
static void static void
...@@ -4127,11 +4127,11 @@ eel_editable_label_accessible_notify_gtk (GObject *obj, ...@@ -4127,11 +4127,11 @@ eel_editable_label_accessible_notify_gtk (GObject *obj,
{ {
eel_editable_label_accessible_notify_insert (accessible); eel_editable_label_accessible_notify_insert (accessible);
if (check_for_selection_change (accessible, widget)) if (check_for_selection_change (accessible, widget))
g_signal_emit_by_name (accessible, "text_selection_changed"); g_signal_emit_by_name (accessible, "text-selection-changed");
/* /*
* The label cursor position has moved so generate the signal. * The label cursor position has moved so generate the signal.
*/ */
g_signal_emit_by_name (accessible, "text_caret_moved", g_signal_emit_by_name (accessible, "text-caret-moved",
g_utf8_pointer_to_offset (label->text, g_utf8_pointer_to_offset (label->text,
label->text + label->selection_anchor)); label->text + label->selection_anchor));
} }
...@@ -4140,7 +4140,7 @@ eel_editable_label_accessible_notify_gtk (GObject *obj, ...@@ -4140,7 +4140,7 @@ eel_editable_label_accessible_notify_gtk (GObject *obj,
eel_editable_label_accessible_notify_insert (accessible); eel_editable_label_accessible_notify_insert (accessible);
if (check_for_selection_change (accessible, widget)) if (check_for_selection_change (accessible, widget))
g_signal_emit_by_name (accessible, "text_selection_changed"); g_signal_emit_by_name (accessible, "text-selection-changed");
} }
} }
......
...@@ -359,7 +359,7 @@ eel_gtk_tree_view_set_activate_on_single_click (GtkTreeView *tree_view, ...@@ -359,7 +359,7 @@ eel_gtk_tree_view_set_activate_on_single_click (GtkTreeView *tree_view,
} else if (!button_press_id && should_activate) { } else if (!button_press_id && should_activate) {
button_press_id = g_signal_connect button_press_id = g_signal_connect
(tree_view, (tree_view,
"button_press_event", "button-press-event",
G_CALLBACK (tree_view_button_press_callback), G_CALLBACK (tree_view_button_press_callback),
NULL); NULL);
g_object_set_data (G_OBJECT (tree_view), g_object_set_data (G_OBJECT (tree_view),
......
...@@ -36,7 +36,7 @@ nautilus_menu_provider_base_init (gpointer g_class) ...@@ -36,7 +36,7 @@ nautilus_menu_provider_base_init (gpointer g_class)
if (!initialized) if (!initialized)
{ {
/* This signal should be emited each time the extension modify the list of menu items */ /* This signal should be emited each time the extension modify the list of menu items */
g_signal_new ("items_updated", g_signal_new ("items-updated",
NAUTILUS_TYPE_MENU_PROVIDER, NAUTILUS_TYPE_MENU_PROVIDER,
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
0, 0,
...@@ -127,6 +127,6 @@ nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider* provider ...@@ -127,6 +127,6 @@ nautilus_menu_provider_emit_items_updated_signal (NautilusMenuProvider* provider
{ {
g_return_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider)); g_return_if_fail (NAUTILUS_IS_MENU_PROVIDER (provider));
g_signal_emit_by_name (provider, "items_updated"); g_signal_emit_by_name (provider, "items-updated");
} }
...@@ -3872,11 +3872,11 @@ realize (GtkWidget *widget) ...@@ -3872,11 +3872,11 @@ realize (GtkWidget *widget)
nautilus_canvas_dnd_init (container); nautilus_canvas_dnd_init (container);
hadj = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (widget)); hadj = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (widget));
g_signal_connect (hadj, "value_changed", g_signal_connect (hadj, "value-changed",
G_CALLBACK (handle_hadjustment_changed), widget); G_CALLBACK (handle_hadjustment_changed), widget);
vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (widget)); vadj = gtk_scrollable_get_vadjustment (GTK_SCROLLABLE (widget));
g_signal_connect (vadj, "value_changed", g_signal_connect (vadj, "value-changed",
G_CALLBACK (handle_vadjustment_changed), widget); G_CALLBACK (handle_vadjustment_changed), widget);
} }
...@@ -4713,7 +4713,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4713,7 +4713,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
/* Signals. */ /* Signals. */
signals[SELECTION_CHANGED] signals[SELECTION_CHANGED]
= g_signal_new ("selection_changed", = g_signal_new ("selection-changed",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4722,7 +4722,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4722,7 +4722,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
g_cclosure_marshal_VOID__VOID, g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
signals[BUTTON_PRESS] signals[BUTTON_PRESS]
= g_signal_new ("button_press", = g_signal_new ("button-press",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4742,7 +4742,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4742,7 +4742,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ACTIVATE_ALTERNATE] signals[ACTIVATE_ALTERNATE]
= g_signal_new ("activate_alternate", = g_signal_new ("activate-alternate",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4752,7 +4752,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4752,7 +4752,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ACTIVATE_PREVIEWER] signals[ACTIVATE_PREVIEWER]
= g_signal_new ("activate_previewer", = g_signal_new ("activate-previewer",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4762,7 +4762,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4762,7 +4762,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 2, G_TYPE_NONE, 2,
G_TYPE_POINTER, G_TYPE_POINTER); G_TYPE_POINTER, G_TYPE_POINTER);
signals[CONTEXT_CLICK_SELECTION] signals[CONTEXT_CLICK_SELECTION]
= g_signal_new ("context_click_selection", = g_signal_new ("context-click-selection",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4772,7 +4772,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4772,7 +4772,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[CONTEXT_CLICK_BACKGROUND] signals[CONTEXT_CLICK_BACKGROUND]
= g_signal_new ("context_click_background", = g_signal_new ("context-click-background",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4782,7 +4782,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4782,7 +4782,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[MIDDLE_CLICK] signals[MIDDLE_CLICK]
= g_signal_new ("middle_click", = g_signal_new ("middle-click",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4792,7 +4792,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4792,7 +4792,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ICON_POSITION_CHANGED] signals[ICON_POSITION_CHANGED]
= g_signal_new ("icon_position_changed", = g_signal_new ("icon-position-changed",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4803,7 +4803,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4803,7 +4803,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_POINTER, G_TYPE_POINTER,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ICON_STRETCH_STARTED] signals[ICON_STRETCH_STARTED]
= g_signal_new ("icon_stretch_started", = g_signal_new ("icon-stretch-started",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4813,7 +4813,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4813,7 +4813,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ICON_STRETCH_ENDED] signals[ICON_STRETCH_ENDED]
= g_signal_new ("icon_stretch_ended", = g_signal_new ("icon-stretch-ended",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4823,7 +4823,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4823,7 +4823,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ICON_RENAME_STARTED] signals[ICON_RENAME_STARTED]
= g_signal_new ("icon_rename_started", = g_signal_new ("icon-rename-started",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4833,7 +4833,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4833,7 +4833,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_NONE, 1, G_TYPE_NONE, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[ICON_RENAME_ENDED] signals[ICON_RENAME_ENDED]
= g_signal_new ("icon_rename_ended", = g_signal_new ("icon-rename-ended",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4844,7 +4844,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4844,7 +4844,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_POINTER, G_TYPE_POINTER,
G_TYPE_STRING); G_TYPE_STRING);
signals[GET_ICON_URI] signals[GET_ICON_URI]
= g_signal_new ("get_icon_uri", = g_signal_new ("get-icon-uri",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4854,7 +4854,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4854,7 +4854,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_STRING, 1, G_TYPE_STRING, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[GET_ICON_DROP_TARGET_URI] signals[GET_ICON_DROP_TARGET_URI]
= g_signal_new ("get_icon_drop_target_uri", = g_signal_new ("get-icon-drop-target-uri",
G_TYPE_FROM_CLASS (class), G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (NautilusCanvasContainerClass, G_STRUCT_OFFSET (NautilusCanvasContainerClass,
...@@ -4864,7 +4864,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class) ...@@ -4864,7 +4864,7 @@ nautilus_canvas_container_class_init (NautilusCanvasContainerClass *class)
G_TYPE_STRING, 1, G_TYPE_STRING, 1,
G_TYPE_POINTER); G_TYPE_POINTER);
signals[MOVE_COPY_ITEMS] signals[MOVE_COPY_ITEMS]
= g_signal_new ("move_copy_items", = g_signal_new ("move-copy-items",
G_TYPE_FROM_CLASS (class),