diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-08-06 00:17:22 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-08-06 00:17:22 +0800 |
commit | 49bf5d7f6eb779c0a69a0c04a66b9ae62d278a69 (patch) | |
tree | da90fd9962df4e65b39de8e423809bc34e41fc57 | |
parent | 1d3c560d4e3eb2fea630f2d01d2af05e07c2131d (diff) | |
download | gsoc2013-epiphany-49bf5d7f6eb779c0a69a0c04a66b9ae62d278a69.tar.gz gsoc2013-epiphany-49bf5d7f6eb779c0a69a0c04a66b9ae62d278a69.tar.zst gsoc2013-epiphany-49bf5d7f6eb779c0a69a0c04a66b9ae62d278a69.zip |
Correct ref-counting.
2003-08-04 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/ephy-arrow-toolbutton.c:
Correct ref-counting.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-arrow-toolbutton.c | 7 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2003-08-04 Christian Persch <chpe@cvs.gnome.org> + + * lib/widgets/ephy-arrow-toolbutton.c: + + Correct ref-counting. + 2003-08-05 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/EventContext.cpp: diff --git a/lib/widgets/ephy-arrow-toolbutton.c b/lib/widgets/ephy-arrow-toolbutton.c index 5ab996593..36fd99847 100644 --- a/lib/widgets/ephy-arrow-toolbutton.c +++ b/lib/widgets/ephy-arrow-toolbutton.c @@ -14,6 +14,9 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * $Id$ + * */ #include "ephy-arrow-toolbutton.h" @@ -210,6 +213,7 @@ ephy_arrow_toolbutton_init (EphyArrowToolButton *arrowtb) gtk_container_remove (GTK_CONTAINER (arrowtb), real_button); gtk_container_add (GTK_CONTAINER (hbox), real_button); gtk_container_add (GTK_CONTAINER (arrowtb), hbox); + g_object_unref (real_button); arrow_button = gtk_toggle_button_new (); gtk_widget_show (arrow_button); @@ -225,6 +229,9 @@ ephy_arrow_toolbutton_init (EphyArrowToolButton *arrowtb) arrowtb->priv->arrow_widget = arrow_button; arrowtb->priv->menu = GTK_MENU (gtk_menu_new ()); + g_object_ref (arrowtb->priv->menu); + gtk_object_sink (GTK_OBJECT (arrowtb->priv->menu)); + g_signal_connect (arrowtb->priv->menu, "deactivate", G_CALLBACK (menu_deactivated_cb), arrowtb); |