[gnome-commander] inline gnome_cmd_file_selector_new ()



commit 588b4fa4892d01ba99ba675b08f1715ba89edad1
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Thu Apr 28 23:43:35 2011 +0200

    inline gnome_cmd_file_selector_new ()

 src/gnome-cmd-file-selector.cc |    8 --------
 src/gnome-cmd-file-selector.h  |    7 ++++++-
 2 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index ba12eb8..8e58951 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -853,14 +853,6 @@ GtkType gnome_cmd_file_selector_get_type ()
 }
 
 
-GtkWidget *gnome_cmd_file_selector_new ()
-{
-    GnomeCmdFileSelector *fs = (GnomeCmdFileSelector *) g_object_new (GNOME_CMD_TYPE_FILE_SELECTOR, NULL);
-
-    return *fs;
-}
-
-
 void GnomeCmdFileSelector::first()
 {
     if (!priv->dir_history->can_back())
diff --git a/src/gnome-cmd-file-selector.h b/src/gnome-cmd-file-selector.h
index ed41523..46d8934 100644
--- a/src/gnome-cmd-file-selector.h
+++ b/src/gnome-cmd-file-selector.h
@@ -133,7 +133,12 @@ inline GtkWidget *GnomeCmdFileSelector::new_tab(GnomeCmdDir *dir, gboolean activ
 }
 
 GtkType gnome_cmd_file_selector_get_type ();
-GtkWidget *gnome_cmd_file_selector_new ();
+
+inline GtkWidget *gnome_cmd_file_selector_new ()
+{
+    GnomeCmdFileSelector *fs = (GnomeCmdFileSelector *) g_object_new (GNOME_CMD_TYPE_FILE_SELECTOR, NULL);
+    return *fs;
+}
 
 void gnome_cmd_file_selector_show_new_textfile_dialog (GnomeCmdFileSelector *fs);
 



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