aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets/ephy-location-entry.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2009-03-09 22:20:01 +0800
committerXan Lopez <xan@src.gnome.org>2009-03-09 22:20:01 +0800
commit8d68232448dd1f3d531ece81b428cca30dec0b9d (patch)
treead41eee6423a86c163b93abd316b7f04ef9fe1f9 /lib/widgets/ephy-location-entry.c
parentc160cac94ca924bf764f557dabc73a6f0e9a457f (diff)
downloadgsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.tar
gsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.tar.gz
gsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.tar.bz2
gsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.tar.lz
gsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.tar.xz
gsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.tar.zst
gsoc2013-epiphany-8d68232448dd1f3d531ece81b428cca30dec0b9d.zip
ephy-location-entry: use g_object_connect for mass signal connection.
svn path=/trunk/; revision=8865
Diffstat (limited to 'lib/widgets/ephy-location-entry.c')
-rw-r--r--lib/widgets/ephy-location-entry.c29
1 files changed, 12 insertions, 17 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 422de48b9..3a59299a6 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -923,11 +923,6 @@ ephy_location_entry_construct_contents (EphyLocationEntry *lentry)
GDK_ACTION_ASK | GDK_ACTION_COPY | GDK_ACTION_LINK);
gtk_target_list_unref (targetlist);
- g_signal_connect (priv->entry, "drag-data-get",
- G_CALLBACK (favicon_drag_data_get_cb), lentry);
- g_signal_connect_after (priv->entry, "drag-begin",
- G_CALLBACK (favicon_drag_begin_cb), lentry);
-
gtk_entry_set_icon_tooltip_text (GTK_ENTRY (priv->entry),
GTK_ENTRY_ICON_PRIMARY,
_("Drag and drop this icon to create a link to this page"));
@@ -941,23 +936,23 @@ ephy_location_entry_construct_contents (EphyLocationEntry *lentry)
gtk_entry_set_icon_activatable (GTK_ENTRY (priv->entry),
GTK_ENTRY_ICON_SECONDARY,
TRUE);
- g_signal_connect (priv->entry, "icon-press",
- G_CALLBACK (icon_button_press_event_cb), lentry);
- g_signal_connect (priv->entry, "populate_popup",
- G_CALLBACK (entry_populate_popup_cb), lentry);
- g_signal_connect (priv->entry, "key-press-event",
- G_CALLBACK (entry_key_press_cb), lentry);
+ g_object_connect (priv->entry,
+ "signal::icon-press", G_CALLBACK (icon_button_press_event_cb), lentry,
+ "signal::populate-popup", G_CALLBACK (entry_populate_popup_cb), lentry,
+ "signal::key-press-event", G_CALLBACK (entry_key_press_cb), lentry,
+ "signal::changed", G_CALLBACK (editable_changed_cb), lentry,
+ "signal::drag-motion", G_CALLBACK (entry_drag_motion_cb), lentry,
+ "signal::drag-drop", G_CALLBACK (entry_drag_drop_cb), lentry,
+ "signal::drag-data-get", G_CALLBACK (favicon_drag_data_get_cb), lentry,
+ NULL);
+
g_signal_connect_after (priv->entry, "key-press-event",
G_CALLBACK (entry_key_press_after_cb), lentry);
g_signal_connect_after (priv->entry, "activate",
G_CALLBACK (entry_activate_after_cb), lentry);
- g_signal_connect (priv->entry, "changed",
- G_CALLBACK (editable_changed_cb), lentry);
- g_signal_connect (priv->entry, "drag-motion",
- G_CALLBACK (entry_drag_motion_cb), lentry);
- g_signal_connect (priv->entry, "drag-drop",
- G_CALLBACK (entry_drag_drop_cb), lentry);
+ g_signal_connect_after (priv->entry, "drag-begin",
+ G_CALLBACK (favicon_drag_begin_cb), lentry);
gtk_widget_show (priv->entry);
}