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



commit 44ea5a30b2c64d34fc8707af570b3ae08fd9789f
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat Aug 7 23:59:57 2010 +0200

    Replaced obsoleted gtk_object_ref() with g_object_ref()

 src/gnome-cmd-file-props-dialog.cc |    6 +++---
 src/gnome-cmd-options-dialog.cc    |   12 ++++++------
 src/gnome-cmd-remote-dialog.cc     |    2 +-
 src/gnome-cmd-search-dialog.cc     |   14 +++++++-------
 4 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index 8835026..ace80fc 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -543,7 +543,7 @@ inline GtkWidget *create_permissions_tab (GnomeCmdFilePropsDialogPrivate *data)
     gtk_container_add (GTK_CONTAINER (space_frame), vbox);
 
     data->chown_component = gnome_cmd_chown_component_new ();
-    gtk_widget_ref (data->chown_component);
+    g_object_ref (data->chown_component);
     g_object_set_data_full (G_OBJECT (data->dialog), "chown_component", data->chown_component, g_object_unref);
     gtk_widget_show (data->chown_component);
     gnome_cmd_chown_component_set (GNOME_CMD_CHOWN_COMPONENT (data->chown_component),
@@ -554,7 +554,7 @@ inline GtkWidget *create_permissions_tab (GnomeCmdFilePropsDialogPrivate *data)
 
 
     data->chmod_component = gnome_cmd_chmod_component_new ((GnomeVFSFilePermissions) 0);
-    gtk_widget_ref (data->chmod_component);
+    g_object_ref (data->chmod_component);
     g_object_set_data_full (G_OBJECT (data->dialog), "chmod_component", data->chmod_component, g_object_unref);
     gtk_widget_show (data->chmod_component);
     gnome_cmd_chmod_component_set_perms (GNOME_CMD_CHMOD_COMPONENT (data->chmod_component), data->f->info->permissions);
@@ -729,7 +729,7 @@ GtkWidget *gnome_cmd_file_props_dialog_create (GnomeCmdFile *f)
     data->notebook = notebook;
     gnome_cmd_file_ref (f);
 
-    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);
diff --git a/src/gnome-cmd-options-dialog.cc b/src/gnome-cmd-options-dialog.cc
index 0ffd0ba..48f9c09 100644
--- a/src/gnome-cmd-options-dialog.cc
+++ b/src/gnome-cmd-options-dialog.cc
@@ -45,7 +45,7 @@ struct GnomeCmdOptionsDialog::Private
 inline GtkWidget *create_font_picker (GtkWidget *parent, gchar *name)
 {
     GtkWidget *w = gtk_font_button_new ();
-    gtk_widget_ref (w);
+    g_object_ref (w);
     g_object_set_data_full (G_OBJECT (parent), name, w, g_object_unref);
     gtk_widget_show (w);
 
@@ -396,7 +396,7 @@ static void on_edit_colors_close (GtkButton *btn, GtkWidget *dlg)
 static void on_colors_edit (GtkButton *btn, GtkWidget *parent)
 {
     GtkWidget *dlg = gnome_cmd_dialog_new (_("Edit Colors..."));
-    gtk_widget_ref (dlg);
+    g_object_ref (dlg);
 
     GtkWidget *cat, *cat_box;
     GtkWidget *table, *label;
@@ -528,7 +528,7 @@ static void on_edit_ls_colors_reset (GtkButton *btn, GtkWidget *dlg)
 static void on_ls_colors_edit (GtkButton *btn, GtkWidget *parent)
 {
     GtkWidget *dlg = gnome_cmd_dialog_new (_("Edit LS_COLORS Palette"));
-    gtk_widget_ref (dlg);
+    g_object_ref (dlg);
 
     GtkWidget *cat, *cat_box;
     GtkWidget *table, *label;
@@ -1280,7 +1280,7 @@ static GtkWidget *create_app_dialog (GnomeCmdApp *app, GtkSignalFunc on_ok, GtkS
     const gchar *s = NULL;
 
     GtkWidget *dialog = gnome_cmd_dialog_new (NULL);
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
     g_object_set_data (G_OBJECT (dialog), "options_dialog", options_dialog);
 
     hbox = create_hbox (dialog, FALSE, 6);
@@ -1681,7 +1681,7 @@ static GtkWidget *create_device_dialog (GnomeCmdConDevice *dev, GtkSignalFunc on
     gchar *icon_dir;
 
     dialog = gnome_cmd_dialog_new ("");
-    gtk_widget_ref (dialog);
+    g_object_ref (dialog);
     gtk_window_set_title (GTK_WINDOW (dialog), "");
     g_object_set_data (G_OBJECT (dialog), "options_dialog", options_dialog);
 
@@ -1965,7 +1965,7 @@ static void init (GnomeCmdOptionsDialog *dialog)
     gtk_window_set_title (GTK_WINDOW (options_dialog), _("Options"));
 
     dialog->notebook = gtk_notebook_new ();
-    gtk_widget_ref (dialog->notebook);
+    g_object_ref (dialog->notebook);
     g_object_set_data_full (G_OBJECT (options_dialog), "notebook", dialog->notebook, g_object_unref);
     gtk_widget_show (dialog->notebook);
     gnome_cmd_dialog_add_expanding_category (GNOME_CMD_DIALOG (dialog), dialog->notebook);
diff --git a/src/gnome-cmd-remote-dialog.cc b/src/gnome-cmd-remote-dialog.cc
index 0aa2d2c..d4ccc69 100644
--- a/src/gnome-cmd-remote-dialog.cc
+++ b/src/gnome-cmd-remote-dialog.cc
@@ -460,7 +460,7 @@ static void init (GnomeCmdRemoteDialog *ftp_dialog)
     gtk_box_pack_start (GTK_BOX (cat_box), sw, TRUE, TRUE, 0);
 
     ftp_dialog->priv->connection_list = create_view_and_model (get_ftp_cons ());
-    gtk_widget_ref (ftp_dialog->priv->connection_list);
+    g_object_ref (ftp_dialog->priv->connection_list);
     g_object_set_data_full (G_OBJECT (dialog), "connection_list", ftp_dialog->priv->connection_list, g_object_unref);
     gtk_widget_show (ftp_dialog->priv->connection_list);
     gtk_container_add (GTK_CONTAINER (sw), ftp_dialog->priv->connection_list);
diff --git a/src/gnome-cmd-search-dialog.cc b/src/gnome-cmd-search-dialog.cc
index c1b6373..199280a 100644
--- a/src/gnome-cmd-search-dialog.cc
+++ b/src/gnome-cmd-search-dialog.cc
@@ -732,7 +732,7 @@ inline GtkWidget *create_label_with_mnemonic (GtkWidget *parent, const gchar *te
     if (for_widget != NULL)
       gtk_label_set_mnemonic_widget (GTK_LABEL (label), for_widget);
 
-    gtk_widget_ref (label);
+    g_object_ref (label);
     g_object_set_data_full (G_OBJECT (parent), "label", label, g_object_unref);
     gtk_widget_show (label);
     gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
@@ -747,7 +747,7 @@ inline GtkWidget *create_check_with_mnemonic (GtkWidget *parent, const gchar *te
 {
     GtkWidget *btn = gtk_check_button_new_with_mnemonic (text);
 
-    gtk_widget_ref (btn);
+    g_object_ref (btn);
     g_object_set_data_full (G_OBJECT (parent), name, btn, g_object_unref);
     gtk_widget_show (btn);
 
@@ -761,7 +761,7 @@ inline GtkWidget *create_radio_with_mnemonic (GtkWidget *parent, GSList *group,
 {
     GtkWidget *radio = gtk_radio_button_new_with_mnemonic (group, text);
 
-    gtk_widget_ref (radio);
+    g_object_ref (radio);
     g_object_set_data_full (G_OBJECT (parent), name, radio, g_object_unref);
     gtk_widget_show (radio);
 
@@ -774,7 +774,7 @@ inline GtkWidget *create_radio_with_mnemonic (GtkWidget *parent, GSList *group,
 inline GtkWidget *create_combo_box_entry (GtkWidget *parent)
 {
     GtkWidget *combo = gtk_combo_box_entry_new_text ();
-    gtk_widget_ref (combo);
+    g_object_ref (combo);
     g_object_set_data_full (G_OBJECT (parent), "combo", combo, g_object_unref);
     gtk_widget_show (combo);
     return combo;
@@ -897,14 +897,14 @@ static void init (GnomeCmdSearchDialog *dialog)
 
 
     sw = gtk_scrolled_window_new (NULL, NULL);
-    gtk_widget_ref (sw);
+    g_object_ref (sw);
     g_object_set_data_full (G_OBJECT (window), "sw", sw, g_object_unref);
     gtk_widget_show (sw);
     gtk_box_pack_start (GTK_BOX (vbox), sw, TRUE, TRUE, 0);
     gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
 
     dialog->priv->result_list = new GnomeCmdFileList(GnomeCmdFileList::COLUMN_NAME,GTK_SORT_ASCENDING);
-    gtk_widget_ref (GTK_WIDGET (dialog->priv->result_list));
+    g_object_ref (dialog->priv->result_list);
     g_object_set_data_full (G_OBJECT (window), "result_list", GTK_WIDGET (dialog->priv->result_list), g_object_unref);
     gtk_widget_set_size_request (GTK_WIDGET (dialog->priv->result_list), -1, 200);
     gtk_widget_show (GTK_WIDGET (dialog->priv->result_list));
@@ -914,7 +914,7 @@ static void init (GnomeCmdSearchDialog *dialog)
 
     dialog->priv->statusbar = gtk_statusbar_new ();
     gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (dialog->priv->statusbar), FALSE);
-    gtk_widget_ref (dialog->priv->statusbar);
+    g_object_ref (dialog->priv->statusbar);
     g_object_set_data_full (G_OBJECT (window), "statusbar", dialog->priv->statusbar, g_object_unref);
     gtk_widget_show (dialog->priv->statusbar);
     gtk_box_pack_start (GTK_BOX (vbox), dialog->priv->statusbar, FALSE, TRUE, 0);



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