[gnome-commander] inline get_combo_text()



commit 59b9f78bb672bc2d886b803fd66175f10ca6dafc
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Aug 24 20:19:23 2011 +0200

    inline get_combo_text()

 libgcmd/libgcmd-widget-factory.cc |    6 ------
 libgcmd/libgcmd-widget-factory.h  |    5 ++++-
 2 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/libgcmd/libgcmd-widget-factory.cc b/libgcmd/libgcmd-widget-factory.cc
index 669abf4..459517c 100644
--- a/libgcmd/libgcmd-widget-factory.cc
+++ b/libgcmd/libgcmd-widget-factory.cc
@@ -455,12 +455,6 @@ GtkWidget *create_option_menu (GtkWidget *parent, const gchar **items)
 }
 
 
-const gchar *get_combo_text (GtkWidget *combo)
-{
-    return gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (combo)->entry));
-}
-
-
 GtkWidget *create_progress_bar (GtkWidget *parent)
 {
     GtkWidget *w = gtk_progress_bar_new ();
diff --git a/libgcmd/libgcmd-widget-factory.h b/libgcmd/libgcmd-widget-factory.h
index d10f64c..35d7099 100644
--- a/libgcmd/libgcmd-widget-factory.h
+++ b/libgcmd/libgcmd-widget-factory.h
@@ -125,7 +125,10 @@ GtkWidget *create_combo (GtkWidget *parent);
 
 GtkWidget *create_option_menu (GtkWidget *parent, const gchar **items);
 
-const gchar *get_combo_text (GtkWidget *combo);
+inline const gchar *get_combo_text (GtkWidget *combo)
+{
+    return gtk_entry_get_text (GTK_ENTRY (GTK_COMBO (combo)->entry));
+}
 
 inline GSList *get_radio_group (GtkWidget *radio)
 {



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