[gimp/gtk3-port: 37/228] app: port GimpScalComboBox to GTK+ 3.0
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 37/228] app: port GimpScalComboBox to GTK+ 3.0
- Date: Fri, 4 May 2012 15:24:58 +0000 (UTC)
commit 0eab492ca181f7b878af007be2e6e0b0a5cefe42
Author: Michael Natterer <mitch gimp org>
Date: Tue Oct 19 12:21:11 2010 +0200
app: port GimpScalComboBox to GTK+ 3.0
app/display/gimpscalecombobox.c | 1 +
app/display/gimpscalecombobox.h | 14 +++++++-------
2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/app/display/gimpscalecombobox.c b/app/display/gimpscalecombobox.c
index 61e0ebb..2a8d095 100644
--- a/app/display/gimpscalecombobox.c
+++ b/app/display/gimpscalecombobox.c
@@ -146,6 +146,7 @@ gimp_scale_combo_box_constructed (GObject *object)
entry = gtk_bin_get_child (GTK_BIN (combo_box));
g_object_set (entry,
+ "has-entry", TRUE,
"xalign", 1.0,
"width-chars", 7,
"truncate-multiline", TRUE,
diff --git a/app/display/gimpscalecombobox.h b/app/display/gimpscalecombobox.h
index 144deee..a4500d9 100644
--- a/app/display/gimpscalecombobox.h
+++ b/app/display/gimpscalecombobox.h
@@ -32,13 +32,6 @@
typedef struct _GimpScaleComboBoxClass GimpScaleComboBoxClass;
-struct _GimpScaleComboBoxClass
-{
- GtkComboBoxClass parent_instance;
-
- void (* entry_activated) (GimpScaleComboBox *combo_box);
-};
-
struct _GimpScaleComboBox
{
GtkComboBox parent_instance;
@@ -48,6 +41,13 @@ struct _GimpScaleComboBox
GList *mru;
};
+struct _GimpScaleComboBoxClass
+{
+ GtkComboBoxClass parent_instance;
+
+ void (* entry_activated) (GimpScaleComboBox *combo_box);
+};
+
GType gimp_scale_combo_box_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]