gtk+ r21069 - in trunk: . gtk
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21069 - in trunk: . gtk
- Date: Mon, 11 Aug 2008 13:36:15 +0000 (UTC)
Author: neo
Date: Mon Aug 11 13:36:15 2008
New Revision: 21069
URL: http://svn.gnome.org/viewvc/gtk+?rev=21069&view=rev
Log:
2008-08-11 Sven Neumann <sven gimp org>
* gtk/gtkdnd-quartz.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkfilesel.c
* gtk/gtkimcontextsimple.c
* gtk/gtkimmulticontext.c
* gtk/gtkoptionmenu.c
* gtk/gtkplug.c
* gtk/gtkrecentchooserdefault.c
* gtk/gtkscrolledwindow.c
* gtk/gtksocket-x11.c: use canonical signal names in some more
places that I missed earlier.
Modified:
trunk/ChangeLog
trunk/gtk/gtkdnd-quartz.c
trunk/gtk/gtkdnd.c
trunk/gtk/gtkentry.c
trunk/gtk/gtkfilesel.c
trunk/gtk/gtkimcontextsimple.c
trunk/gtk/gtkimmulticontext.c
trunk/gtk/gtkoptionmenu.c
trunk/gtk/gtkplug.c
trunk/gtk/gtkrecentchooserdefault.c
trunk/gtk/gtkscrolledwindow.c
trunk/gtk/gtksocket-x11.c
Modified: trunk/gtk/gtkdnd-quartz.c
==============================================================================
--- trunk/gtk/gtkdnd-quartz.c (original)
+++ trunk/gtk/gtkdnd-quartz.c Mon Aug 11 13:36:15 2008
@@ -150,7 +150,7 @@
selection_data.target,
&target_info))
{
- g_signal_emit_by_name (info->widget, "drag_data_get",
+ g_signal_emit_by_name (info->widget, "drag-data-get",
info->context,
&selection_data,
target_info,
@@ -209,7 +209,7 @@
if (!(site->flags & GTK_DEST_DEFAULT_DROP) ||
selection_data->length >= 0)
g_signal_emit_by_name (widget,
- "drag_data_received",
+ "drag-data-received",
context, info->drop_x, info->drop_y,
selection_data,
target_info, time);
@@ -218,7 +218,7 @@
else
{
g_signal_emit_by_name (widget,
- "drag_data_received",
+ "drag-data-received",
context, info->drop_x, info->drop_y,
selection_data,
0, time);
@@ -775,7 +775,7 @@
if (!(site->flags & GTK_DEST_DEFAULT_MOTION) || site->have_drag ||
site->track_motion)
- g_signal_emit_by_name (widget, "drag_leave", context, time);
+ g_signal_emit_by_name (widget, "drag-leave", context, time);
site->have_drag = FALSE;
}
@@ -818,7 +818,7 @@
}
}
- g_signal_emit_by_name (widget, "drag_motion",
+ g_signal_emit_by_name (widget, "drag-motion",
context, x, y, time, &retval);
return (site->flags & GTK_DEST_DEFAULT_MOTION) ? TRUE : retval;
@@ -857,7 +857,7 @@
gtk_drag_get_data (widget, context, target, time);
}
- g_signal_emit_by_name (widget, "drag_drop",
+ g_signal_emit_by_name (widget, "drag-drop",
context, x, y, time, &retval);
return (site->flags & GTK_DEST_DEFAULT_DROP) ? TRUE : retval;
@@ -1058,7 +1058,7 @@
info->possible_actions = actions;
- g_signal_emit_by_name (widget, "drag_begin", info->context);
+ g_signal_emit_by_name (widget, "drag-begin", info->context);
/* Ensure that we have an icon before we start the drag; the
* application may have set one in ::drag_begin, or it may
@@ -1757,7 +1757,7 @@
if (info->icon_pixbuf)
g_object_unref (info->icon_pixbuf);
- g_signal_emit_by_name (info->widget, "drag_end",
+ g_signal_emit_by_name (info->widget, "drag-end",
info->context);
if (info->widget)
Modified: trunk/gtk/gtkdnd.c
==============================================================================
--- trunk/gtk/gtkdnd.c (original)
+++ trunk/gtk/gtkdnd.c Mon Aug 11 13:36:15 2008
@@ -1603,7 +1603,7 @@
if (!(site->flags & GTK_DEST_DEFAULT_DROP) ||
selection_data->length >= 0)
g_signal_emit_by_name (drop_widget,
- "drag_data_received",
+ "drag-data-received",
context, info->drop_x, info->drop_y,
selection_data,
target_info, time);
@@ -1612,7 +1612,7 @@
else
{
g_signal_emit_by_name (drop_widget,
- "drag_data_received",
+ "drag-data-received",
context, info->drop_x, info->drop_y,
selection_data,
0, time);
@@ -1964,7 +1964,7 @@
if (!(site->flags & GTK_DEST_DEFAULT_MOTION) || site->have_drag ||
site->track_motion)
- g_signal_emit_by_name (widget, "drag_leave", context, time);
+ g_signal_emit_by_name (widget, "drag-leave", context, time);
site->have_drag = FALSE;
}
@@ -2071,7 +2071,7 @@
}
}
- g_signal_emit_by_name (widget, "drag_motion",
+ g_signal_emit_by_name (widget, "drag-motion",
context, x, y, time, &retval);
return (site->flags & GTK_DEST_DEFAULT_MOTION) ? TRUE : retval;
@@ -2172,7 +2172,7 @@
gtk_drag_get_data (widget, context, target, time);
}
- g_signal_emit_by_name (widget, "drag_drop",
+ g_signal_emit_by_name (widget, "drag-drop",
context, x, y, time, &retval);
return (site->flags & GTK_DEST_DEFAULT_DROP) ? TRUE : retval;
@@ -2280,7 +2280,7 @@
&info->cur_screen, &info->cur_x, &info->cur_y, NULL);
}
- g_signal_emit_by_name (widget, "drag_begin", info->context);
+ g_signal_emit_by_name (widget, "drag-begin", info->context);
/* Ensure that we have an icon before we start the drag; the
* application may have set one in ::drag_begin, or it may
@@ -3449,7 +3449,7 @@
else
{
if (!success)
- g_signal_emit_by_name (info->widget, "drag_failed",
+ g_signal_emit_by_name (info->widget, "drag-failed",
info->context, result, &success);
if (success)
@@ -3537,7 +3537,7 @@
selection_data.data = NULL;
selection_data.length = -1;
- g_signal_emit_by_name (info->widget, "drag_data_get",
+ g_signal_emit_by_name (info->widget, "drag-data-get",
info->context, &selection_data,
pair->info,
time);
@@ -3655,7 +3655,7 @@
{
case TARGET_DELETE:
g_signal_emit_by_name (info->widget,
- "drag_data_delete",
+ "drag-data-delete",
info->context);
gtk_selection_data_set (selection_data, null_atom, 8, NULL, 0);
break;
@@ -3687,7 +3687,7 @@
selection_data->target,
&target_info))
{
- g_signal_emit_by_name (info->widget, "drag_data_get",
+ g_signal_emit_by_name (info->widget, "drag-data-get",
info->context,
selection_data,
target_info,
@@ -3799,8 +3799,7 @@
info);
if (!info->proxy_dest)
- g_signal_emit_by_name (info->widget, "drag_end",
- info->context);
+ g_signal_emit_by_name (info->widget, "drag-end", info->context);
if (info->widget)
g_object_unref (info->widget);
Modified: trunk/gtk/gtkentry.c
==============================================================================
--- trunk/gtk/gtkentry.c (original)
+++ trunk/gtk/gtkentry.c Mon Aug 11 13:36:15 2008
@@ -2312,7 +2312,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, position);
+ g_signal_emit_by_name (editable, "insert-text", text, new_text_length, position);
if (!entry->visible)
trash_area (text, new_text_length);
@@ -2339,7 +2339,7 @@
g_object_ref (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 (editable);
}
Modified: trunk/gtk/gtkfilesel.c
==============================================================================
--- trunk/gtk/gtkfilesel.c (original)
+++ trunk/gtk/gtkfilesel.c Mon Aug 11 13:36:15 2008
@@ -704,7 +704,7 @@
gtk_widget_set_size_request (filesel->dir_list,
DIR_LIST_WIDTH, DIR_LIST_HEIGHT);
- g_signal_connect (filesel->dir_list, "row_activated",
+ g_signal_connect (filesel->dir_list, "row-activated",
G_CALLBACK (gtk_file_selection_dir_activate), filesel);
/* gtk_clist_column_titles_passive (GTK_CLIST (filesel->dir_list)); */
@@ -740,7 +740,7 @@
gtk_widget_set_size_request (filesel->file_list,
FILE_LIST_WIDTH, FILE_LIST_HEIGHT);
- g_signal_connect (filesel->file_list, "row_activated",
+ g_signal_connect (filesel->file_list, "row-activated",
G_CALLBACK (gtk_file_selection_file_activate), filesel);
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (filesel->file_list)), "changed",
G_CALLBACK (gtk_file_selection_file_changed), filesel);
@@ -795,13 +795,13 @@
gtk_widget_show (eventbox);
filesel->selection_entry = gtk_entry_new ();
- g_signal_connect (filesel->selection_entry, "key_press_event",
+ g_signal_connect (filesel->selection_entry, "key-press-event",
G_CALLBACK (gtk_file_selection_key_press), filesel);
- g_signal_connect (filesel->selection_entry, "insert_text",
+ g_signal_connect (filesel->selection_entry, "insert-text",
G_CALLBACK (gtk_file_selection_insert_text), NULL);
g_signal_connect_swapped (filesel->selection_entry, "changed",
G_CALLBACK (gtk_file_selection_update_fileops), filesel);
- g_signal_connect_swapped (filesel->selection_entry, "focus_in_event",
+ g_signal_connect_swapped (filesel->selection_entry, "focus-in-event",
G_CALLBACK (grab_default),
filesel->ok_button);
g_signal_connect_swapped (filesel->selection_entry, "activate",
@@ -980,7 +980,7 @@
GDK_ACTION_COPY);
gtk_drag_dest_add_uri_targets (GTK_WIDGET (filesel));
- g_signal_connect (filesel, "drag_data_received",
+ g_signal_connect (filesel, "drag-data-received",
G_CALLBACK (filenames_dropped), NULL);
eventbox = gtk_widget_get_parent (filesel->selection_text);
@@ -991,7 +991,7 @@
gtk_drag_source_add_uri_targets (eventbox);
gtk_drag_source_add_text_targets (eventbox);
- g_signal_connect (eventbox, "drag_data_get",
+ g_signal_connect (eventbox, "drag-data-get",
G_CALLBACK (filenames_drag_get), filesel);
}
Modified: trunk/gtk/gtkimcontextsimple.c
==============================================================================
--- trunk/gtk/gtkimcontextsimple.c (original)
+++ trunk/gtk/gtkimcontextsimple.c Mon Aug 11 13:36:15 2008
@@ -160,8 +160,8 @@
context_simple->in_hex_sequence = FALSE;
context_simple->tentative_match = 0;
context_simple->tentative_match_len = 0;
- g_signal_emit_by_name (context_simple, "preedit_changed");
- g_signal_emit_by_name (context_simple, "preedit_end");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
+ g_signal_emit_by_name (context_simple, "preedit-end");
}
g_signal_emit_by_name (context, "commit", &buf);
@@ -254,7 +254,7 @@
context_simple->tentative_match = value;
context_simple->tentative_match_len = n_compose;
- g_signal_emit_by_name (context_simple, "preedit_changed");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
return TRUE;
}
@@ -316,7 +316,7 @@
break;
else
{
- g_signal_emit_by_name (context_simple, "preedit_changed");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
return TRUE;
}
}
@@ -724,8 +724,8 @@
context_simple->in_hex_sequence = FALSE;
context_simple->compose_buffer[0] = 0;
- g_signal_emit_by_name (context_simple, "preedit_changed");
- g_signal_emit_by_name (context_simple, "preedit_end");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
+ g_signal_emit_by_name (context_simple, "preedit-end");
}
return TRUE;
@@ -787,10 +787,10 @@
context_simple->in_hex_sequence = FALSE;
}
- g_signal_emit_by_name (context_simple, "preedit_changed");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
if (!context_simple->in_hex_sequence)
- g_signal_emit_by_name (context_simple, "preedit_end");
+ g_signal_emit_by_name (context_simple, "preedit-end");
return TRUE;
}
@@ -824,8 +824,8 @@
context_simple->modifiers_dropped = FALSE;
context_simple->tentative_match = 0;
- g_signal_emit_by_name (context_simple, "preedit_start");
- g_signal_emit_by_name (context_simple, "preedit_changed");
+ g_signal_emit_by_name (context_simple, "preedit-start");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
return TRUE;
}
@@ -881,10 +881,10 @@
else if (!check_hex (context_simple, n_compose))
beep_window (event->window);
- g_signal_emit_by_name (context_simple, "preedit_changed");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
if (!context_simple->in_hex_sequence)
- g_signal_emit_by_name (context_simple, "preedit_end");
+ g_signal_emit_by_name (context_simple, "preedit-end");
return TRUE;
}
@@ -922,8 +922,8 @@
context_simple->in_hex_sequence = FALSE;
context_simple->tentative_match = 0;
context_simple->tentative_match_len = 0;
- g_signal_emit_by_name (context_simple, "preedit_changed");
- g_signal_emit_by_name (context_simple, "preedit_end");
+ g_signal_emit_by_name (context_simple, "preedit-changed");
+ g_signal_emit_by_name (context_simple, "preedit-end");
}
}
Modified: trunk/gtk/gtkimmulticontext.c
==============================================================================
--- trunk/gtk/gtkimmulticontext.c (original)
+++ trunk/gtk/gtkimmulticontext.c Mon Aug 11 13:36:15 2008
@@ -186,22 +186,22 @@
{
g_object_ref (multicontext->slave);
- g_signal_connect (multicontext->slave, "preedit_start",
+ g_signal_connect (multicontext->slave, "preedit-start",
G_CALLBACK (gtk_im_multicontext_preedit_start_cb),
multicontext);
- g_signal_connect (multicontext->slave, "preedit_end",
+ g_signal_connect (multicontext->slave, "preedit-end",
G_CALLBACK (gtk_im_multicontext_preedit_end_cb),
multicontext);
- g_signal_connect (multicontext->slave, "preedit_changed",
+ g_signal_connect (multicontext->slave, "preedit-changed",
G_CALLBACK (gtk_im_multicontext_preedit_changed_cb),
multicontext);
g_signal_connect (multicontext->slave, "commit",
G_CALLBACK (gtk_im_multicontext_commit_cb),
multicontext);
- g_signal_connect (multicontext->slave, "retrieve_surrounding",
+ g_signal_connect (multicontext->slave, "retrieve-surrounding",
G_CALLBACK (gtk_im_multicontext_retrieve_surrounding_cb),
multicontext);
- g_signal_connect (multicontext->slave, "delete_surrounding",
+ g_signal_connect (multicontext->slave, "delete-surrounding",
G_CALLBACK (gtk_im_multicontext_delete_surrounding_cb),
multicontext);
@@ -216,7 +216,7 @@
}
if (need_preedit_changed)
- g_signal_emit_by_name (multicontext, "preedit_changed");
+ g_signal_emit_by_name (multicontext, "preedit-changed");
}
static GtkIMContext *
@@ -435,21 +435,21 @@
gtk_im_multicontext_preedit_start_cb (GtkIMContext *slave,
GtkIMMulticontext *multicontext)
{
- g_signal_emit_by_name (multicontext, "preedit_start");
+ g_signal_emit_by_name (multicontext, "preedit-start");
}
static void
gtk_im_multicontext_preedit_end_cb (GtkIMContext *slave,
GtkIMMulticontext *multicontext)
{
- g_signal_emit_by_name (multicontext, "preedit_end");
+ g_signal_emit_by_name (multicontext, "preedit-end");
}
static void
gtk_im_multicontext_preedit_changed_cb (GtkIMContext *slave,
GtkIMMulticontext *multicontext)
{
- g_signal_emit_by_name (multicontext, "preedit_changed");
+ g_signal_emit_by_name (multicontext, "preedit-changed");
}
static void
@@ -466,7 +466,7 @@
{
gboolean result;
- g_signal_emit_by_name (multicontext, "retrieve_surrounding", &result);
+ g_signal_emit_by_name (multicontext, "retrieve-surrounding", &result);
return result;
}
@@ -479,7 +479,7 @@
{
gboolean result;
- g_signal_emit_by_name (multicontext, "delete_surrounding",
+ g_signal_emit_by_name (multicontext, "delete-surrounding",
offset, n_chars, &result);
return result;
Modified: trunk/gtk/gtkoptionmenu.c
==============================================================================
--- trunk/gtk/gtkoptionmenu.c (original)
+++ trunk/gtk/gtkoptionmenu.c Mon Aug 11 13:36:15 2008
@@ -253,7 +253,7 @@
g_signal_connect_after (option_menu->menu, "selection-done",
G_CALLBACK (gtk_option_menu_selection_done),
option_menu);
- g_signal_connect_swapped (option_menu->menu, "size_request",
+ g_signal_connect_swapped (option_menu->menu, "size-request",
G_CALLBACK (gtk_option_menu_calc_size),
option_menu);
@@ -776,7 +776,7 @@
gtk_widget_reparent (child, GTK_WIDGET (option_menu));
}
- g_signal_connect (option_menu->menu_item, "state_changed",
+ g_signal_connect (option_menu->menu_item, "state-changed",
G_CALLBACK (gtk_option_menu_item_state_changed_cb), option_menu);
g_signal_connect (option_menu->menu_item, "destroy",
G_CALLBACK (gtk_option_menu_item_destroy_cb), option_menu);
Modified: trunk/gtk/gtkplug.c
==============================================================================
--- trunk/gtk/gtkplug.c (original)
+++ trunk/gtk/gtkplug.c Mon Aug 11 13:36:15 2008
@@ -334,7 +334,7 @@
gtk_widget_set_parent (widget, GTK_WIDGET (socket_));
- g_signal_emit_by_name (socket_, "plug_added");
+ g_signal_emit_by_name (socket_, "plug-added");
}
/**
@@ -414,7 +414,7 @@
gtk_plug_set_is_child (plug, FALSE);
- g_signal_emit_by_name (socket_, "plug_removed", &result);
+ g_signal_emit_by_name (socket_, "plug-removed", &result);
if (!result)
gtk_widget_destroy (GTK_WIDGET (socket_));
Modified: trunk/gtk/gtkrecentchooserdefault.c
==============================================================================
--- trunk/gtk/gtkrecentchooserdefault.c (original)
+++ trunk/gtk/gtkrecentchooserdefault.c Mon Aug 11 13:36:15 2008
@@ -387,9 +387,9 @@
G_CALLBACK (recent_view_popup_menu_cb), impl);
g_signal_connect (impl->recent_view, "button-press-event",
G_CALLBACK (recent_view_button_press_cb), impl);
- g_signal_connect (impl->recent_view, "drag_begin",
+ g_signal_connect (impl->recent_view, "drag-begin",
G_CALLBACK (recent_view_drag_begin_cb), impl);
- g_signal_connect (impl->recent_view, "drag_data_get",
+ g_signal_connect (impl->recent_view, "drag-data-get",
G_CALLBACK (recent_view_drag_data_get_cb), impl);
g_object_set (impl->recent_view, "has-tooltip", TRUE, NULL);
Modified: trunk/gtk/gtkscrolledwindow.c
==============================================================================
--- trunk/gtk/gtkscrolledwindow.c (original)
+++ trunk/gtk/gtkscrolledwindow.c Mon Aug 11 13:36:15 2008
@@ -1151,7 +1151,7 @@
g_object_ref (scrolled_window);
scrolled_window->focus_out = TRUE;
- g_signal_emit_by_name (toplevel, "move_focus", direction_type);
+ g_signal_emit_by_name (toplevel, "move-focus", direction_type);
scrolled_window->focus_out = FALSE;
g_object_unref (scrolled_window);
Modified: trunk/gtk/gtksocket-x11.c
==============================================================================
--- trunk/gtk/gtksocket-x11.c (original)
+++ trunk/gtk/gtksocket-x11.c Mon Aug 11 13:36:15 2008
@@ -506,7 +506,7 @@
_gtk_socket_end_embedding (socket);
g_object_ref (widget);
- g_signal_emit_by_name (widget, "plug_removed", &result);
+ g_signal_emit_by_name (widget, "plug-removed", &result);
if (!result)
gtk_widget_destroy (widget);
g_object_unref (widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]