+Fri Oct 27 19:45:32 2006 John Ellis <johne@verizon.net>
+
+ * layout.c, ui_menu.c, ui_misc.c: Use g_object_ref_sink when
+ gtk_object_sink is not available as it is deprecated.
+
Wed Oct 25 15:17:38 2006 John Ellis <johne@verizon.net>
* pixbuf-renderer.c (pixbuf_renderer_scroll): Fix long standing bug
Minor (non blockers):
----------------------------------------------
+ > update icon used for window to the (not so) new icon
+
d> allow multiple command line dirs to work as expected
(ie contents of each are treated as given on command line)
menu = submenu_add_sort(NULL, G_CALLBACK(layout_sort_menu_cb), lw, FALSE, FALSE, TRUE, lw->sort_method);
- /* apparently the menu is never sunk, even on a popup */
+ /* take ownership of menu */
+#ifdef GTK_OBJECT_FLOATING
+ /* GTK+ < 2.10 */
g_object_ref(G_OBJECT(menu));
gtk_object_sink(GTK_OBJECT(menu));
+#else
+ /* GTK+ >= 2.10 */
+ g_object_ref_sink(G_OBJECT(menu));
+#endif
/* ascending option */
menu_item_add_divider(menu);
GtkWidget *menu;
menu = gtk_menu_new();
+
+ /* take ownership of menu */
+#ifdef GTK_OBJECT_FLOATING
+ /* GTK+ < 2.10 */
g_object_ref(G_OBJECT(menu));
gtk_object_sink(GTK_OBJECT(menu));
+#else
+ /* GTK+ >= 2.10 */
+ g_object_ref_sink(G_OBJECT(menu));
+#endif
+
g_signal_connect(G_OBJECT(menu), "selection_done",
G_CALLBACK(popup_menu_short_lived_cb), menu);
return menu;
}
tips = gtk_tooltips_new();
+
+ /* take ownership of tooltips */
+#ifdef GTK_OBJECT_FLOATING
+ /* GTK+ < 2.10 */
g_object_ref(G_OBJECT(tips));
- gtk_object_sink(GTK_OBJECT(tips));
+ gtk_object_sink(GTK_OBJECT(tips));
+#else
+ /* GTK+ >= 2.10 */
+ g_object_ref_sink(G_OBJECT(tips));
+#endif
+
g_object_set_data(G_OBJECT(tbar), "tooltips", tips);
g_signal_connect(G_OBJECT(tbar), "destroy",
G_CALLBACK(pref_toolbar_destroy_cb), tips);