[gnome-commander] Replaced obsoleted gtk_object_ref() with g_object_ref() 3/5



commit c115ae65f7ab1a89a1f741fb4aa653bebf99f63f
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Aug 3 17:55:35 2010 +0200

    Replaced obsoleted gtk_object_ref() with g_object_ref() 3/5

 src/gnome-cmd-dir.cc  |    2 +-
 src/gnome-cmd-file.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-dir.cc b/src/gnome-cmd-dir.cc
index 306e147..e88497a 100644
--- a/src/gnome-cmd-dir.cc
+++ b/src/gnome-cmd-dir.cc
@@ -524,7 +524,7 @@ static void on_dir_list_cancel (GtkButton *btn, GnomeCmdDir *dir)
 static void create_list_progress_dialog (GnomeCmdDir *dir)
 {
     dir->dialog = gnome_cmd_dialog_new (NULL);
-    gtk_widget_ref (dir->dialog);
+    g_object_ref (dir->dialog);
 
     gnome_cmd_dialog_add_button (
         GNOME_CMD_DIALOG (dir->dialog),
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index c037b74..ad29b58 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -703,7 +703,7 @@ void gnome_cmd_file_show_properties (GnomeCmdFile *f)
     GtkWidget *dialog = gnome_cmd_file_props_dialog_create (f);
     if (!dialog) return;
 
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
     gtk_widget_show (dialog);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]