summaryrefslogtreecommitdiff
path: root/gtk/gtkcombobox.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-10-16 18:01:33 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-10-17 14:11:27 +0900
commit31abdf723aa5af06bd8ea730e9575d2f38ff0a98 (patch)
treed284044193359b795553778f94abd8a9c13e694f /gtk/gtkcombobox.h
parent17cd0db6a81a782ed6c069d73efa5692c84b582e (diff)
downloadgtk+-31abdf723aa5af06bd8ea730e9575d2f38ff0a98.tar.gz
Allow GtkComboBox popup to be wider than the combo itself.
This patch adds a GtkComboBox:popup-fixed-width to decide if the popup's width should be a fixed width matching the combo's allocated width. The patch includes a kindof hack to work around treeviews currently not supporting height-for-width geometry (for list-mode only), this hack can be safely removed once treeviews start reporting natural widths properly.
Diffstat (limited to 'gtk/gtkcombobox.h')
-rw-r--r--gtk/gtkcombobox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkcombobox.h b/gtk/gtkcombobox.h
index 42476b0572..df59ed6476 100644
--- a/gtk/gtkcombobox.h
+++ b/gtk/gtkcombobox.h
@@ -124,6 +124,10 @@ void gtk_combo_box_set_entry_text_column (GtkComboBox *com
gint text_column);
gint gtk_combo_box_get_entry_text_column (GtkComboBox *combo_box);
+void gtk_combo_box_set_popup_fixed_width (GtkComboBox *combo_box,
+ gboolean fixed);
+gboolean gtk_combo_box_get_popup_fixed_width (GtkComboBox *combo_box);
+
#ifndef GTK_DISABLE_DEPRECATED
/* convenience -- text */