[gedit-list] [PATCH] use g_object_ref_sink
- From: John Luke <john luke gmail com>
- To: gedit-list gnome org
- Subject: [gedit-list] [PATCH] use g_object_ref_sink
- Date: Wed, 09 Aug 2006 10:49:06 -0400
Hello,
Here is a patch to use g_object_ref_sink instead of ref +
gtk_object_sink that I saw listed at
http://live.gnome.org/Gedit/RoadMap?highlight=%28gedit%29
? refsink.patch
Index: gedit/gedit-message-area.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-message-area.c,v
retrieving revision 1.3
diff -u -r1.3 gedit-message-area.c
--- gedit/gedit-message-area.c 18 Feb 2006 15:29:21 -0000 1.3
+++ gedit/gedit-message-area.c 8 Aug 2006 18:48:16 -0000
@@ -172,8 +172,7 @@
return;
tooltips = gtk_tooltips_new ();
- g_object_ref (G_OBJECT (tooltips));
- gtk_object_sink (GTK_OBJECT (tooltips));
+ g_object_ref_sink (GTK_OBJECT (tooltips));
gtk_tooltips_force_window (tooltips);
gtk_widget_ensure_style (tooltips->tip_window);
Index: gedit/gedit-notebook.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-notebook.c,v
retrieving revision 1.5
diff -u -r1.5 gedit-notebook.c
--- gedit/gedit-notebook.c 15 Jun 2006 15:02:45 -0000 1.5
+++ gedit/gedit-notebook.c 8 Aug 2006 18:48:17 -0000
@@ -658,8 +658,7 @@
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE);
notebook->priv->title_tips = gedit_tooltips_new ();
- g_object_ref (G_OBJECT (notebook->priv->title_tips));
- gtk_object_sink (GTK_OBJECT (notebook->priv->title_tips));
+ g_object_ref_sink (GTK_OBJECT (notebook->priv->title_tips));
notebook->priv->always_show_tabs = TRUE;
Index: gedit/gedit-output-window.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-output-window.c,v
retrieving revision 1.6
diff -u -r1.6 gedit-output-window.c
--- gedit/gedit-output-window.c 12 Dec 2005 17:27:55 -0000 1.6
+++ gedit/gedit-output-window.c 8 Aug 2006 18:48:17 -0000
@@ -356,8 +356,7 @@
output_window->priv->tooltips = gtk_tooltips_new ();
- g_object_ref (G_OBJECT (output_window->priv->tooltips ));
- gtk_object_sink (GTK_OBJECT (output_window->priv->tooltips ));
+ g_object_ref_sink (GTK_OBJECT (output_window->priv->tooltips ));
settings = gtk_widget_get_settings (GTK_WIDGET (output_window));
Index: gedit/gedit-panel.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-panel.c,v
retrieving revision 1.10
diff -u -r1.10 gedit-panel.c
--- gedit/gedit-panel.c 15 Jun 2006 15:02:45 -0000 1.10
+++ gedit/gedit-panel.c 8 Aug 2006 18:48:17 -0000
@@ -418,8 +418,7 @@
g_return_if_fail (panel->priv != NULL);
panel->priv->tooltips = gtk_tooltips_new ();
- g_object_ref (G_OBJECT (panel->priv->tooltips));
- gtk_object_sink (GTK_OBJECT (panel->priv->tooltips));
+ g_object_ref_sink (GTK_OBJECT (panel->priv->tooltips));
}
static void
Index: gedit/gedit-statusbar.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-statusbar.c,v
retrieving revision 1.2
diff -u -r1.2 gedit-statusbar.c
--- gedit/gedit-statusbar.c 12 Dec 2005 17:27:55 -0000 1.2
+++ gedit/gedit-statusbar.c 8 Aug 2006 18:48:18 -0000
@@ -190,8 +190,7 @@
0);
statusbar->priv->tooltips = gedit_tooltips_new ();
- g_object_ref (G_OBJECT (statusbar->priv->tooltips));
- gtk_object_sink (GTK_OBJECT (statusbar->priv->tooltips));
+ g_object_ref_sink (GTK_OBJECT (statusbar->priv->tooltips));
}
/**
Index: gedit/gedit-view.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-view.c,v
retrieving revision 1.71
diff -u -r1.71 gedit-view.c
--- gedit/gedit-view.c 7 Aug 2006 16:42:40 -0000 1.71
+++ gedit/gedit-view.c 8 Aug 2006 18:48:18 -0000
@@ -1565,8 +1565,7 @@
gtk_widget_realize (view->priv->search_entry);
view->priv->tooltips = gtk_tooltips_new ();
- g_object_ref (G_OBJECT (view->priv->tooltips));
- gtk_object_sink (GTK_OBJECT (view->priv->tooltips));
+ g_object_ref_sink (GTK_OBJECT (view->priv->tooltips));
customize_for_search_mode (view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]