[gnome-commander] inline get_combo_text()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] inline get_combo_text()
- Date: Wed, 24 Aug 2011 18:26:19 +0000 (UTC)
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]