mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
gtk/gtkscale.c gtk/gtkscrolledwindow.c gtk/gtksocket.c gtk/gtkspinbutton.c
2008-08-08 Sven Neumann <sven@gimp.org> * gtk/gtkscale.c * gtk/gtkscrolledwindow.c * gtk/gtksocket.c * gtk/gtkspinbutton.c * gtk/gtkstatusbar.c * gtk/gtkstatusicon.c: use canonical signal names. svn path=/trunk/; revision=21046
This commit is contained in:
parent
e3c01cf601
commit
1b34902d33
@ -1,3 +1,12 @@
|
|||||||
|
2008-08-08 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkscale.c
|
||||||
|
* gtk/gtkscrolledwindow.c
|
||||||
|
* gtk/gtksocket.c
|
||||||
|
* gtk/gtkspinbutton.c
|
||||||
|
* gtk/gtkstatusbar.c
|
||||||
|
* gtk/gtkstatusicon.c: use canonical signal names.
|
||||||
|
|
||||||
2008-08-08 Sven Neumann <sven@gimp.org>
|
2008-08-08 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* gtk/gtktext.c
|
* gtk/gtktext.c
|
||||||
|
@ -102,7 +102,7 @@ single_string_accumulator (GSignalInvocationHint *ihint,
|
|||||||
|
|
||||||
#define add_slider_binding(binding_set, keyval, mask, scroll) \
|
#define add_slider_binding(binding_set, keyval, mask, scroll) \
|
||||||
gtk_binding_entry_add_signal (binding_set, keyval, mask, \
|
gtk_binding_entry_add_signal (binding_set, keyval, mask, \
|
||||||
I_("move_slider"), 1, \
|
I_("move-slider"), 1, \
|
||||||
GTK_TYPE_SCROLL_TYPE, scroll)
|
GTK_TYPE_SCROLL_TYPE, scroll)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -127,7 +127,7 @@ gtk_scale_class_init (GtkScaleClass *class)
|
|||||||
range_class->get_range_border = gtk_scale_get_range_border;
|
range_class->get_range_border = gtk_scale_get_range_border;
|
||||||
|
|
||||||
signals[FORMAT_VALUE] =
|
signals[FORMAT_VALUE] =
|
||||||
g_signal_new (I_("format_value"),
|
g_signal_new (I_("format-value"),
|
||||||
G_TYPE_FROM_CLASS (gobject_class),
|
G_TYPE_FROM_CLASS (gobject_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkScaleClass, format_value),
|
G_STRUCT_OFFSET (GtkScaleClass, format_value),
|
||||||
|
@ -157,11 +157,11 @@ add_scroll_binding (GtkBindingSet *binding_set,
|
|||||||
guint keypad_keyval = keyval - GDK_Left + GDK_KP_Left;
|
guint keypad_keyval = keyval - GDK_Left + GDK_KP_Left;
|
||||||
|
|
||||||
gtk_binding_entry_add_signal (binding_set, keyval, mask,
|
gtk_binding_entry_add_signal (binding_set, keyval, mask,
|
||||||
"scroll_child", 2,
|
"scroll-child", 2,
|
||||||
GTK_TYPE_SCROLL_TYPE, scroll,
|
GTK_TYPE_SCROLL_TYPE, scroll,
|
||||||
G_TYPE_BOOLEAN, horizontal);
|
G_TYPE_BOOLEAN, horizontal);
|
||||||
gtk_binding_entry_add_signal (binding_set, keypad_keyval, mask,
|
gtk_binding_entry_add_signal (binding_set, keypad_keyval, mask,
|
||||||
"scroll_child", 2,
|
"scroll-child", 2,
|
||||||
GTK_TYPE_SCROLL_TYPE, scroll,
|
GTK_TYPE_SCROLL_TYPE, scroll,
|
||||||
G_TYPE_BOOLEAN, horizontal);
|
G_TYPE_BOOLEAN, horizontal);
|
||||||
}
|
}
|
||||||
@ -172,10 +172,10 @@ add_tab_bindings (GtkBindingSet *binding_set,
|
|||||||
GtkDirectionType direction)
|
GtkDirectionType direction)
|
||||||
{
|
{
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_Tab, modifiers,
|
gtk_binding_entry_add_signal (binding_set, GDK_Tab, modifiers,
|
||||||
"move_focus_out", 1,
|
"move-focus-out", 1,
|
||||||
GTK_TYPE_DIRECTION_TYPE, direction);
|
GTK_TYPE_DIRECTION_TYPE, direction);
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_KP_Tab, modifiers,
|
gtk_binding_entry_add_signal (binding_set, GDK_KP_Tab, modifiers,
|
||||||
"move_focus_out", 1,
|
"move-focus-out", 1,
|
||||||
GTK_TYPE_DIRECTION_TYPE, direction);
|
GTK_TYPE_DIRECTION_TYPE, direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -319,7 +319,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
|
|||||||
|
|
||||||
|
|
||||||
signals[SCROLL_CHILD] =
|
signals[SCROLL_CHILD] =
|
||||||
g_signal_new (I_("scroll_child"),
|
g_signal_new (I_("scroll-child"),
|
||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||||
G_STRUCT_OFFSET (GtkScrolledWindowClass, scroll_child),
|
G_STRUCT_OFFSET (GtkScrolledWindowClass, scroll_child),
|
||||||
@ -329,7 +329,7 @@ gtk_scrolled_window_class_init (GtkScrolledWindowClass *class)
|
|||||||
GTK_TYPE_SCROLL_TYPE,
|
GTK_TYPE_SCROLL_TYPE,
|
||||||
G_TYPE_BOOLEAN);
|
G_TYPE_BOOLEAN);
|
||||||
signals[MOVE_FOCUS_OUT] =
|
signals[MOVE_FOCUS_OUT] =
|
||||||
g_signal_new (I_("move_focus_out"),
|
g_signal_new (I_("move-focus-out"),
|
||||||
G_TYPE_FROM_CLASS (object_class),
|
G_TYPE_FROM_CLASS (object_class),
|
||||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||||
G_STRUCT_OFFSET (GtkScrolledWindowClass, move_focus_out),
|
G_STRUCT_OFFSET (GtkScrolledWindowClass, move_focus_out),
|
||||||
|
@ -152,7 +152,7 @@ gtk_socket_class_init (GtkSocketClass *class)
|
|||||||
* added to the socket.
|
* added to the socket.
|
||||||
*/
|
*/
|
||||||
socket_signals[PLUG_ADDED] =
|
socket_signals[PLUG_ADDED] =
|
||||||
g_signal_new (I_("plug_added"),
|
g_signal_new (I_("plug-added"),
|
||||||
G_OBJECT_CLASS_TYPE (class),
|
G_OBJECT_CLASS_TYPE (class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkSocketClass, plug_added),
|
G_STRUCT_OFFSET (GtkSocketClass, plug_added),
|
||||||
@ -171,7 +171,7 @@ gtk_socket_class_init (GtkSocketClass *class)
|
|||||||
* Return value: %TRUE to stop other handlers from being invoked.
|
* Return value: %TRUE to stop other handlers from being invoked.
|
||||||
*/
|
*/
|
||||||
socket_signals[PLUG_REMOVED] =
|
socket_signals[PLUG_REMOVED] =
|
||||||
g_signal_new (I_("plug_removed"),
|
g_signal_new (I_("plug-removed"),
|
||||||
G_OBJECT_CLASS_TYPE (class),
|
G_OBJECT_CLASS_TYPE (class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkSocketClass, plug_removed),
|
G_STRUCT_OFFSET (GtkSocketClass, plug_removed),
|
||||||
|
@ -357,7 +357,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
|
|||||||
|
|
||||||
/* Action signals */
|
/* Action signals */
|
||||||
spinbutton_signals[CHANGE_VALUE] =
|
spinbutton_signals[CHANGE_VALUE] =
|
||||||
g_signal_new (I_("change_value"),
|
g_signal_new (I_("change-value"),
|
||||||
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 (GtkSpinButtonClass, change_value),
|
G_STRUCT_OFFSET (GtkSpinButtonClass, change_value),
|
||||||
|
@ -152,7 +152,7 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
|
|||||||
* Is emitted whenever a new message gets pushed onto a statusbar's stack.
|
* Is emitted whenever a new message gets pushed onto a statusbar's stack.
|
||||||
*/
|
*/
|
||||||
statusbar_signals[SIGNAL_TEXT_PUSHED] =
|
statusbar_signals[SIGNAL_TEXT_PUSHED] =
|
||||||
g_signal_new (I_("text_pushed"),
|
g_signal_new (I_("text-pushed"),
|
||||||
G_OBJECT_CLASS_TYPE (class),
|
G_OBJECT_CLASS_TYPE (class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkStatusbarClass, text_pushed),
|
G_STRUCT_OFFSET (GtkStatusbarClass, text_pushed),
|
||||||
@ -171,7 +171,7 @@ gtk_statusbar_class_init (GtkStatusbarClass *class)
|
|||||||
* Is emitted whenever a new message is popped off a statusbar's stack.
|
* Is emitted whenever a new message is popped off a statusbar's stack.
|
||||||
*/
|
*/
|
||||||
statusbar_signals[SIGNAL_TEXT_POPPED] =
|
statusbar_signals[SIGNAL_TEXT_POPPED] =
|
||||||
g_signal_new (I_("text_popped"),
|
g_signal_new (I_("text-popped"),
|
||||||
G_OBJECT_CLASS_TYPE (class),
|
G_OBJECT_CLASS_TYPE (class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkStatusbarClass, text_popped),
|
G_STRUCT_OFFSET (GtkStatusbarClass, text_popped),
|
||||||
|
@ -349,7 +349,7 @@ gtk_status_icon_class_init (GtkStatusIconClass *class)
|
|||||||
* Since: 2.10
|
* Since: 2.10
|
||||||
*/
|
*/
|
||||||
status_icon_signals [POPUP_MENU_SIGNAL] =
|
status_icon_signals [POPUP_MENU_SIGNAL] =
|
||||||
g_signal_new (I_("popup_menu"),
|
g_signal_new (I_("popup-menu"),
|
||||||
G_TYPE_FROM_CLASS (gobject_class),
|
G_TYPE_FROM_CLASS (gobject_class),
|
||||||
G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
|
G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
|
||||||
G_STRUCT_OFFSET (GtkStatusIconClass, popup_menu),
|
G_STRUCT_OFFSET (GtkStatusIconClass, popup_menu),
|
||||||
@ -375,7 +375,7 @@ gtk_status_icon_class_init (GtkStatusIconClass *class)
|
|||||||
* Since: 2.10
|
* Since: 2.10
|
||||||
*/
|
*/
|
||||||
status_icon_signals [SIZE_CHANGED_SIGNAL] =
|
status_icon_signals [SIZE_CHANGED_SIGNAL] =
|
||||||
g_signal_new (I_("size_changed"),
|
g_signal_new (I_("size-changed"),
|
||||||
G_TYPE_FROM_CLASS (gobject_class),
|
G_TYPE_FROM_CLASS (gobject_class),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkStatusIconClass, size_changed),
|
G_STRUCT_OFFSET (GtkStatusIconClass, size_changed),
|
||||||
|
Loading…
Reference in New Issue
Block a user