From ee58f4c90dd6a65cd2186750c8fd90e4aa01007f Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Tue, 12 Aug 2008 14:45:59 +0000 Subject: [PATCH] app/core/gimpitem.c app/core/gimpobject.c app/dialogs/preferences-dialog.c 2008-08-12 Sven Neumann * app/core/gimpitem.c * app/core/gimpobject.c * app/dialogs/preferences-dialog.c * plug-ins/imagemap/imap_main.c * plug-ins/imagemap/imap_selection.c * plug-ins/common/filter-pack.c * plug-ins/common/grid.c * plug-ins/common/newsprint.c * plug-ins/fractal-explorer/fractal-explorer-dialogs.c * plug-ins/fractal-explorer/fractal-explorer.c: use canonical signal names. svn path=/trunk/; revision=26517 --- ChangeLog | 14 ++++++++++++++ app/core/gimpitem.c | 2 +- app/core/gimpobject.c | 6 +++--- app/dialogs/preferences-dialog.c | 4 ++-- plug-ins/common/filter-pack.c | 2 +- plug-ins/common/grid.c | 10 +++++----- plug-ins/common/newsprint.c | 2 +- .../fractal-explorer/fractal-explorer-dialogs.c | 2 +- plug-ins/fractal-explorer/fractal-explorer.c | 2 +- plug-ins/imagemap/imap_main.c | 2 +- plug-ins/imagemap/imap_selection.c | 2 +- 11 files changed, 31 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index ec6673e06c..a92b2507bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2008-08-12 Sven Neumann + + * app/core/gimpitem.c + * app/core/gimpobject.c + * app/dialogs/preferences-dialog.c + * plug-ins/imagemap/imap_main.c + * plug-ins/imagemap/imap_selection.c + * plug-ins/common/filter-pack.c + * plug-ins/common/grid.c + * plug-ins/common/newsprint.c + * plug-ins/fractal-explorer/fractal-explorer-dialogs.c + * plug-ins/fractal-explorer/fractal-explorer.c: use canonical + signal names. + 2008-08-12 Sven Neumann * configure.in (sed-po-makefiles): create the stamp-it files in diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c index 17debcf752..ad5e9bce81 100644 --- a/app/core/gimpitem.c +++ b/app/core/gimpitem.c @@ -577,7 +577,7 @@ gimp_item_convert (GimpItem *item, * different from the name it already has, and pushes an entry onto the * undo stack for the item's image. If @new_name is NULL or empty, the * default name for the item's class is used. If the name is changed, - * the "name_changed" signal is emitted for the item. + * the GimpObject::name-changed signal is emitted for the item. * * Returns: %TRUE if the @item could be renamed, %FALSE otherwise. */ diff --git a/app/core/gimpobject.c b/app/core/gimpobject.c index 1640205cf7..5931b20a4d 100644 --- a/app/core/gimpobject.c +++ b/app/core/gimpobject.c @@ -184,7 +184,7 @@ gimp_object_get_property (GObject *object, * @name: the @object's new name * * Sets the @object's name. Takes care of freeing the old name and - * emitting the "name_changed" signal if the old and new name differ. + * emitting the ::name_changed signal if the old and new name differ. **/ void gimp_object_set_name (GimpObject *object, @@ -284,7 +284,7 @@ gimp_object_get_name (const GimpObject *object) * gimp_object_name_changed: * @object: a #GimpObject * - * Causes the "name-changed" signal to be emitted. + * Causes the ::name-changed signal to be emitted. **/ void gimp_object_name_changed (GimpObject *object) @@ -303,7 +303,7 @@ gimp_object_name_changed (GimpObject *object) * * In general you should be using gimp_object_set_name() instead. But * if you ever need to free the object name but don't want the - * "name-changed" signal to be emitted, then use this function. Never + * ::name-changed signal to be emitted, then use this function. Never * ever free the object name directly! **/ void diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c index 6e1fee73f4..a7b5a3249e 100644 --- a/app/dialogs/preferences-dialog.c +++ b/app/dialogs/preferences-dialog.c @@ -511,10 +511,10 @@ prefs_input_devices_dialog (GtkWidget *widget, G_CALLBACK (gtk_widget_destroy), input_dialog); - g_signal_connect (input_dialog, "enable_device", + g_signal_connect (input_dialog, "enable-device", G_CALLBACK (prefs_input_dialog_able_callback), NULL); - g_signal_connect (input_dialog, "disable_device", + g_signal_connect (input_dialog, "disable-device", G_CALLBACK (prefs_input_dialog_able_callback), NULL); diff --git a/plug-ins/common/filter-pack.c b/plug-ins/common/filter-pack.c index 410291122e..207053d242 100644 --- a/plug-ins/common/filter-pack.c +++ b/plug-ins/common/filter-pack.c @@ -888,7 +888,7 @@ fp_create_preview (GtkWidget **preview, *preview = gimp_preview_area_new (); gtk_widget_set_size_request (*preview, preview_width, preview_height); - g_signal_connect (*preview, "size_allocate", + g_signal_connect (*preview, "size-allocate", G_CALLBACK (fp_preview_size_allocate), NULL); gtk_widget_show (*preview); gtk_container_add (GTK_CONTAINER (*frame), *preview); diff --git a/plug-ins/common/grid.c b/plug-ins/common/grid.c index 5ea32f746f..e1d40e4d59 100644 --- a/plug-ins/common/grid.c +++ b/plug-ins/common/grid.c @@ -735,7 +735,7 @@ dialog (gint32 image_ID, gtk_table_attach_defaults (GTK_TABLE (width), chain_button, 1, 3, 2, 3); gtk_widget_show (chain_button); - /* connect to the 'value_changed' signal because we have to take care + /* connect to the 'value-changed' signal because we have to take care * of keeping the entries in sync when the chainbutton is active */ g_signal_connect (width, "value-changed", @@ -798,14 +798,14 @@ dialog (gint32 image_ID, gtk_table_attach_defaults (GTK_TABLE (space), chain_button, 1, 3, 2, 3); gtk_widget_show (chain_button); - /* connect to the 'value_changed' and "unit_changed" signals because + /* connect to the 'value-changed' and "unit-changed" signals because * we have to take care of keeping the entries in sync when the * chainbutton is active */ g_signal_connect (space, "value-changed", G_CALLBACK (entry_callback), chain_button); - g_signal_connect (space, "unit_changed", + g_signal_connect (space, "unit-changed", G_CALLBACK (entry_callback), chain_button); g_signal_connect_swapped (space, "value-changed", @@ -871,14 +871,14 @@ dialog (gint32 image_ID, gtk_table_attach_defaults (GTK_TABLE (table), chain_button, 0, 2, 0, 1); gtk_widget_show (chain_button); - /* connect to the 'value_changed' and "unit_changed" signals because + /* connect to the 'value-changed' and "unit-changed" signals because * we have to take care of keeping the entries in sync when the * chainbutton is active */ g_signal_connect (offset, "value-changed", G_CALLBACK (entry_callback), chain_button); - g_signal_connect (offset, "unit_changed", + g_signal_connect (offset, "unit-changed", G_CALLBACK (entry_callback), chain_button); g_signal_connect_swapped (offset, "value-changed", diff --git a/plug-ins/common/newsprint.c b/plug-ins/common/newsprint.c index 7b6e2d1f05..9abacbe60d 100644 --- a/plug-ins/common/newsprint.c +++ b/plug-ins/common/newsprint.c @@ -677,7 +677,7 @@ new_preview (gint *sfn) gtk_widget_set_size_request (preview, PREVIEW_SIZE, PREVIEW_SIZE); gtk_widget_show (preview); - g_signal_connect_swapped (preview, "size_allocate", + g_signal_connect_swapped (preview, "size-allocate", G_CALLBACK (preview_update), st); label = gtk_label_new (""); diff --git a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c index e2a0280f24..4183a45107 100644 --- a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c +++ b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c @@ -1189,7 +1189,7 @@ explorer_dialog (void) cmap_preview = gimp_preview_area_new (); gtk_widget_set_size_request (cmap_preview, 32, 32); gtk_container_add (GTK_CONTAINER (abox), cmap_preview); - g_signal_connect (cmap_preview, "size_allocate", + g_signal_connect (cmap_preview, "size-allocate", G_CALLBACK (cmap_preview_size_allocate), NULL); gtk_widget_show (cmap_preview); diff --git a/plug-ins/fractal-explorer/fractal-explorer.c b/plug-ins/fractal-explorer/fractal-explorer.c index fe42850332..68c95efa3c 100644 --- a/plug-ins/fractal-explorer/fractal-explorer.c +++ b/plug-ins/fractal-explorer/fractal-explorer.c @@ -1045,7 +1045,7 @@ add_objects_list (void) selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (view)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE); - g_signal_connect (view, "row_activated", + g_signal_connect (view, "row-activated", G_CALLBACK (activate_fractal_callback), NULL); gtk_container_add (GTK_CONTAINER (scrolled_win), view); diff --git a/plug-ins/imagemap/imap_main.c b/plug-ins/imagemap/imap_main.c index a7fb23493c..e8b4362810 100644 --- a/plug-ins/imagemap/imap_main.c +++ b/plug-ins/imagemap/imap_main.c @@ -1278,7 +1278,7 @@ dialog(GimpDrawable *drawable) G_CALLBACK (close_callback), NULL); g_signal_connect (dlg, "key-press-event", G_CALLBACK (key_press_cb), NULL); - g_signal_connect (dlg, "key_release_event", + g_signal_connect (dlg, "key-release-event", G_CALLBACK (key_release_cb), NULL); g_signal_connect (dlg, "destroy", diff --git a/plug-ins/imagemap/imap_selection.c b/plug-ins/imagemap/imap_selection.c index 82ff1d8564..30fa8116c8 100644 --- a/plug-ins/imagemap/imap_selection.c +++ b/plug-ins/imagemap/imap_selection.c @@ -435,7 +435,7 @@ make_selection(ObjectList_t *object_list) /* Drop support */ gtk_drag_dest_set (list, GTK_DEST_DEFAULT_ALL, target_table, 2, GDK_ACTION_COPY); - g_signal_connect (list, "drag_data_received", G_CALLBACK(handle_drop), NULL); + g_signal_connect (list, "drag-data-received", G_CALLBACK(handle_drop), NULL); /* For handling doubleclick */