[gnome-commander] Drop gnome_cmd_dialog_setup() function



commit 663530cc74089d3b92120e2f057887e52ad033b7
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun May 15 14:11:30 2011 +0200

    Drop gnome_cmd_dialog_setup() function

 libgcmd/gnome-cmd-dialog.cc        |   12 ++----------
 libgcmd/gnome-cmd-dialog.h         |    2 --
 src/gnome-cmd-patternsel-dialog.cc |    2 +-
 3 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-dialog.cc b/libgcmd/gnome-cmd-dialog.cc
index 8a34af5..e7e3a5f 100644
--- a/libgcmd/gnome-cmd-dialog.cc
+++ b/libgcmd/gnome-cmd-dialog.cc
@@ -147,18 +147,10 @@ GtkWidget *gnome_cmd_dialog_new (const gchar *title)
 {
     GnomeCmdDialog *dialog = (GnomeCmdDialog *) g_object_new (GNOME_CMD_TYPE_DIALOG, NULL);
 
-    gnome_cmd_dialog_setup (dialog, title);
-
-    return GTK_WIDGET (dialog);
-}
-
-
-void gnome_cmd_dialog_setup (GnomeCmdDialog *dialog, const gchar *title)
-{
-    g_return_if_fail (GNOME_CMD_IS_DIALOG (dialog));
-
     if (title)
         gtk_window_set_title (GTK_WINDOW (dialog), title);
+
+    return GTK_WIDGET (dialog);
 }
 
 
diff --git a/libgcmd/gnome-cmd-dialog.h b/libgcmd/gnome-cmd-dialog.h
index 15fd83c..3f4d09f 100644
--- a/libgcmd/gnome-cmd-dialog.h
+++ b/libgcmd/gnome-cmd-dialog.h
@@ -53,8 +53,6 @@ struct _GnomeCmdDialogClass
 
 GtkWidget *gnome_cmd_dialog_new (const gchar *title);
 
-void gnome_cmd_dialog_setup (GnomeCmdDialog *dialog, const gchar *title);
-
 GtkType gnome_cmd_dialog_get_type ();
 
 GtkWidget *gnome_cmd_dialog_add_button (GnomeCmdDialog *dialog, const gchar *stock_id, GtkSignalFunc on_click, gpointer data);
diff --git a/src/gnome-cmd-patternsel-dialog.cc b/src/gnome-cmd-patternsel-dialog.cc
index 7e17ad8..ce85c01 100644
--- a/src/gnome-cmd-patternsel-dialog.cc
+++ b/src/gnome-cmd-patternsel-dialog.cc
@@ -153,7 +153,7 @@ GtkWidget *gnome_cmd_patternsel_dialog_new (GnomeCmdFileList *fl, gboolean mode)
     dialog->priv->mode = mode;
     dialog->priv->fl = fl;
 
-    gnome_cmd_dialog_setup (GNOME_CMD_DIALOG (dialog), mode ? _("Select Using Pattern") : _("Unselect Using Pattern"));
+    gtk_window_set_title (GTK_WINDOW (dialog), mode ? _("Select Using Pattern") : _("Unselect Using Pattern"));
 
     return GTK_WIDGET (dialog);
 }



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