gtkmm r1101 - in branches/gtkmm-2-14: . gtk/src
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkmm r1101 - in branches/gtkmm-2-14: . gtk/src
- Date: Sun, 22 Feb 2009 02:19:57 +0000 (UTC)
Author: murrayc
Date: Sun Feb 22 02:19:56 2009
New Revision: 1101
URL: http://svn.gnome.org/viewvc/gtkmm?rev=1101&view=rev
Log:
2009-02-22 Murray Cumming <murrayc murrayc com>
* gtk/src/builder.hg: get_widget_derived():
* gtk/src/builder.ccg: get_widget_checked(): Take a reference on
the widget received from gtk_builder_get_object() because it does
not give one.
Modified:
branches/gtkmm-2-14/ChangeLog
branches/gtkmm-2-14/gtk/src/builder.ccg
branches/gtkmm-2-14/gtk/src/builder.hg
Modified: branches/gtkmm-2-14/gtk/src/builder.ccg
==============================================================================
--- branches/gtkmm-2-14/gtk/src/builder.ccg (original)
+++ branches/gtkmm-2-14/gtk/src/builder.ccg Sun Feb 22 02:19:56 2009
@@ -210,7 +210,7 @@
return 0;
}
- return Glib::wrap (GTK_WIDGET (cobject));
+ return Glib::wrap (GTK_WIDGET (cobject), true /* take ref */);
}
Modified: branches/gtkmm-2-14/gtk/src/builder.hg
==============================================================================
--- branches/gtkmm-2-14/gtk/src/builder.hg (original)
+++ branches/gtkmm-2-14/gtk/src/builder.hg Sun Feb 22 02:19:56 2009
@@ -299,6 +299,7 @@
Glib::RefPtr<Gtk::Builder> refThis(this);
refThis->reference(); //take a copy.
widget = new T_Widget(pCWidget, refThis);
+ widget->reference(); //Because gtk_builder_get_object() does not give us a reference.
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]