[gnome-commander] Replacing obsoleted gtk_object_set_data_full() with g_object_set_data_full()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Replacing obsoleted gtk_object_set_data_full() with g_object_set_data_full()
- Date: Wed, 4 Aug 2010 18:17:21 +0000 (UTC)
commit 73f071ddddbb1c8a0c82a8e7f7db8fc875497fd6
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Aug 4 20:16:56 2010 +0200
Replacing obsoleted gtk_object_set_data_full() with g_object_set_data_full()
src/gnome-cmd-dir-indicator.cc | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-cmd-dir-indicator.cc b/src/gnome-cmd-dir-indicator.cc
index 6c133b6..cd28c80 100644
--- a/src/gnome-cmd-dir-indicator.cc
+++ b/src/gnome-cmd-dir-indicator.cc
@@ -341,7 +341,7 @@ static void add_menu_item (GnomeCmdDirIndicator *indicator, GtkMenuShell *shell,
gtk_widget_ref (item);
g_object_set_data (G_OBJECT (item), "indicator", indicator);
- gtk_object_set_data_full (GTK_OBJECT (shell), "menu_item", item, (GtkDestroyNotify) gtk_widget_unref);
+ g_object_set_data_full (G_OBJECT (shell), "menu_item", item, g_object_unref);
if (func)
g_signal_connect (item, "activate", G_CALLBACK (func), data);
gtk_widget_show (item);
@@ -357,9 +357,7 @@ void gnome_cmd_dir_indicator_show_history (GnomeCmdDirIndicator *indicator)
indicator->priv->dir_history_popup = gtk_menu_new ();
gtk_widget_ref (indicator->priv->dir_history_popup);
- gtk_object_set_data_full (
- GTK_OBJECT (indicator), "dir_history_popup",
- indicator->priv->dir_history_popup, (GtkDestroyNotify) gtk_widget_unref);
+ g_object_set_data_full (G_OBJECT (indicator), "dir_history_popup", indicator->priv->dir_history_popup, g_object_unref);
g_signal_connect (indicator->priv->dir_history_popup, "hide", G_CALLBACK (on_dir_history_popup_hide), indicator);
GnomeCmdCon *con = indicator->priv->fs->get_connection();
@@ -414,7 +412,7 @@ void gnome_cmd_dir_indicator_show_bookmarks (GnomeCmdDirIndicator *indicator)
indicator->priv->bookmark_popup = gtk_menu_new ();
gtk_widget_ref (indicator->priv->bookmark_popup);
- gtk_object_set_data_full (GTK_OBJECT (indicator), "bookmark_popup", indicator->priv->bookmark_popup, (GtkDestroyNotify) gtk_widget_unref);
+ g_object_set_data_full (G_OBJECT (indicator), "bookmark_popup", indicator->priv->bookmark_popup, g_object_unref);
g_signal_connect (indicator->priv->bookmark_popup, "hide", G_CALLBACK (on_bookmark_popup_hide), indicator);
GnomeCmdCon *con = indicator->priv->fs->get_connection();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]