aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-03-29 04:06:56 +0800
committerChristian Persch <chpe@src.gnome.org>2006-03-29 04:06:56 +0800
commitab54315150069e84e5db81f271efd0190a47f5d1 (patch)
treedc125616802ea2c4e25deb6faab6da7d893fd406 /lib
parentc064ae70ee2c8029468479580b04b09bda3a7994 (diff)
downloadgsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.tar
gsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.tar.gz
gsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.tar.bz2
gsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.tar.lz
gsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.tar.xz
gsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.tar.zst
gsoc2013-epiphany-ab54315150069e84e5db81f271efd0190a47f5d1.zip
Use g_object_ref_sink().
2006-03-28 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyPromptService.cpp: * lib/egg/egg-editable-toolbar.c: (egg_editable_toolbar_set_fixed): * lib/widgets/ephy-location-entry.c: (ephy_location_entry_init): * lib/widgets/ephy-zoom-control.c: (ephy_zoom_control_init): * src/ephy-fullscreen-popup.c: (ephy_fullscreen_popup_constructor): * src/ephy-notebook.c: (ephy_notebook_init): * src/ephy-statusbar.c: (ephy_statusbar_init): Use g_object_ref_sink().
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c3
-rw-r--r--lib/widgets/ephy-location-entry.c3
-rw-r--r--lib/widgets/ephy-zoom-control.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c
index 2f49b42f5..b7fa0951d 100755
--- a/lib/egg/egg-editable-toolbar.c
+++ b/lib/egg/egg-editable-toolbar.c
@@ -1685,8 +1685,7 @@ egg_editable_toolbar_set_fixed (EggEditableToolbar *etoolbar,
{
priv->fixed_toolbar = GTK_WIDGET (toolbar);
gtk_toolbar_set_show_arrow (toolbar, FALSE);
- g_object_ref (toolbar);
- gtk_object_sink (GTK_OBJECT (toolbar));
+ g_object_ref_sink (toolbar);
}
update_fixed (etoolbar);
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index f38742d03..ac21374ec 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -872,8 +872,7 @@ ephy_location_entry_init (EphyLocationEntry *le)
p->user_changed = TRUE;
p->tips = gtk_tooltips_new ();
- g_object_ref (p->tips);
- gtk_object_sink (GTK_OBJECT (p->tips));
+ g_object_ref_sink (p->tips);
ephy_location_entry_construct_contents (le);
diff --git a/lib/widgets/ephy-zoom-control.c b/lib/widgets/ephy-zoom-control.c
index cc24f61a6..040a00dba 100644
--- a/lib/widgets/ephy-zoom-control.c
+++ b/lib/widgets/ephy-zoom-control.c
@@ -137,8 +137,7 @@ ephy_zoom_control_init (EphyZoomControl *control)
p->combo = combo;
gtk_combo_box_set_focus_on_click (GTK_COMBO_BOX (p->combo), FALSE);
- g_object_ref (combo);
- gtk_object_sink (GTK_OBJECT (combo));
+ g_object_ref_sink (combo);
gtk_widget_show (GTK_WIDGET (combo));
i = ephy_zoom_get_zoom_level_index (p->zoom);