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



commit 287170970db8ff43a99b02000f95d2b7f7c0afc3
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Aug 3 17:59:22 2010 +0200

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

 plugins/cvs/cvs-plugin.cc                |    2 +-
 plugins/cvs/interface.cc                 |   16 ++++++++--------
 plugins/fileroller/file-roller-plugin.cc |    4 ++--
 3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/plugins/cvs/cvs-plugin.cc b/plugins/cvs/cvs-plugin.cc
index 9babc83..9bfd9b2 100644
--- a/plugins/cvs/cvs-plugin.cc
+++ b/plugins/cvs/cvs-plugin.cc
@@ -275,7 +275,7 @@ static void configure (GnomeCmdPlugin *p)
 
     dialog = gnome_cmd_dialog_new (_("Options"));
     plugin->priv->conf_dialog = dialog;
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
     gnome_cmd_dialog_set_transient_for (GNOME_CMD_DIALOG (dialog), GTK_WINDOW (main_win_widget));
     gnome_cmd_dialog_set_modal (GNOME_CMD_DIALOG (dialog));
 
diff --git a/plugins/cvs/interface.cc b/plugins/cvs/interface.cc
index 486b9c2..17c19ae 100644
--- a/plugins/cvs/interface.cc
+++ b/plugins/cvs/interface.cc
@@ -150,7 +150,7 @@ static GtkWidget *create_compare_win (LogHistory *log_history)
     Revision *prev_rev;
 
     dialog = gnome_cmd_dialog_new ("Compare");
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
 
     prev_rev = find_prev_rev (log_history, log_history->plugin->selected_rev);
     if (prev_rev)
@@ -250,7 +250,7 @@ GtkWidget *create_diff_win (CvsPlugin *plugin)
     GtkWidget *notebook;
 
     dialog = gnome_cmd_dialog_new (_("CVS Diff"));
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
     gnome_cmd_dialog_set_resizable (GNOME_CMD_DIALOG (dialog), TRUE);
     gtk_window_set_default_size (GTK_WINDOW (dialog), 510, 300);
 
@@ -262,7 +262,7 @@ GtkWidget *create_diff_win (CvsPlugin *plugin)
     g_signal_connect (dialog, "destroy-event", G_CALLBACK (on_diff_win_destroy), plugin);
 
     notebook = gtk_notebook_new ();
-    gtk_widget_ref (notebook);
+    g_object_ref (notebook);
     g_object_set_data_full (G_OBJECT (dialog), "notebook", notebook, g_object_unref);
     gtk_widget_show (notebook);
     gnome_cmd_dialog_add_expanding_category (GNOME_CMD_DIALOG (dialog), notebook);
@@ -279,7 +279,7 @@ GtkWidget *create_log_win (CvsPlugin *plugin)
     GtkWidget *notebook;
 
     dialog = gnome_cmd_dialog_new ("CVS Log");
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
     gnome_cmd_dialog_set_resizable (GNOME_CMD_DIALOG (dialog), TRUE);
     gtk_window_set_default_size (GTK_WINDOW (dialog), 510, 300);
     gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE);
@@ -292,7 +292,7 @@ GtkWidget *create_log_win (CvsPlugin *plugin)
     g_signal_connect (dialog, "destroy-event", G_CALLBACK (on_log_win_destroy), plugin);
 
     notebook = gtk_notebook_new ();
-    gtk_widget_ref (notebook);
+    g_object_ref (notebook);
     g_object_set_data_full (G_OBJECT (dialog), "notebook", notebook, g_object_unref);
     gtk_widget_show (notebook);
     gnome_cmd_dialog_add_expanding_category (GNOME_CMD_DIALOG (dialog), notebook);
@@ -351,7 +351,7 @@ void add_diff_tab (CvsPlugin *plugin, const gchar *cmd, const gchar *fname)
 
     text_view = gtk_text_view_new ();
     gtk_container_add (GTK_CONTAINER (sw), text_view);
-    gtk_widget_ref (text_view);
+    g_object_ref (text_view);
     g_object_set_data_full (G_OBJECT (sw), "text_view", text_view, g_object_unref);
     gtk_widget_show (text_view);
 
@@ -397,7 +397,7 @@ void add_log_tab (CvsPlugin *plugin, const gchar *fname)
 
     hpaned = gtk_hpaned_new ();
     gtk_container_set_border_width (GTK_CONTAINER (hpaned), 6);
-    gtk_widget_ref (hpaned);
+    g_object_ref (hpaned);
     g_object_set_data_full (G_OBJECT (plugin->log_win), "hpaned", hpaned, g_object_unref);
     g_object_set_data_full (G_OBJECT (hpaned), "log_history", log_history, (GDestroyNotify) log_free);
     gtk_widget_show (hpaned);
@@ -512,7 +512,7 @@ void add_log_tab (CvsPlugin *plugin, const gchar *fname)
 
     msg_text = gtk_text_view_new ();
     log_history->msg_text_view = msg_text;
-    gtk_widget_ref (msg_text);
+    g_object_ref (msg_text);
     g_object_set_data_full (G_OBJECT (hpaned), "msg_text", msg_text, g_object_unref);
     gtk_widget_show (msg_text);
     gtk_container_add (GTK_CONTAINER (sw), msg_text);
diff --git a/plugins/fileroller/file-roller-plugin.cc b/plugins/fileroller/file-roller-plugin.cc
index 453362a..312a3e4 100644
--- a/plugins/fileroller/file-roller-plugin.cc
+++ b/plugins/fileroller/file-roller-plugin.cc
@@ -194,12 +194,12 @@ static void on_add_to_archive (GtkMenuItem *item, FileRollerPlugin *plugin)
         gtk_window_set_title (GTK_WINDOW (dialog), _("Create Archive"));
 
         hbox = gtk_hbox_new (FALSE, 6);
-        gtk_widget_ref (hbox);
+        g_object_ref (hbox);
         gtk_widget_show (hbox);
         gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox, FALSE, TRUE, 6);
 
         entry = gtk_entry_new ();
-        gtk_widget_ref (entry);
+        g_object_ref (entry);
         gtk_widget_show (entry);
         gtk_box_pack_start (GTK_BOX (hbox), entry, TRUE, TRUE, 6);
 



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