[gtk-quartz-engine] Support (now obsolete) GtkOptionMenu
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-quartz-engine] Support (now obsolete) GtkOptionMenu
- Date: Sat, 9 Oct 2010 18:07:22 +0000 (UTC)
commit 89a5b27b8cb86fd9368db39e467256c10f4b5c06
Author: Rob Caelers <robc krandor org>
Date: Tue Jun 2 19:57:16 2009 +0200
Support (now obsolete) GtkOptionMenu
src/quartz-style.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/quartz-style.c b/src/quartz-style.c
index 86f039a..6fbf721 100644
--- a/src/quartz-style.c
+++ b/src/quartz-style.c
@@ -233,6 +233,11 @@ style_setup_rc_styles (void)
"ythickness = 2\n"
"%s", "");
+ RC_WIDGET_CLASS ("quartz-optionmenu", "*GtkOptionMenu*",
+ "xthickness = 6\n"
+ "ythickness = 2\n"
+ "%s", "");
+
/* ProgressBar. */
RC_WIDGET_CLASS ("quartz-progressbar", "*ProgressBar*",
"font_name = \"%s\"\n",
@@ -504,7 +509,8 @@ draw_box (GtkStyle *style,
return;
}
- else if (GTK_IS_TOGGLE_BUTTON (widget) && is_combo_box_child (widget))
+ else if ( (GTK_IS_TOGGLE_BUTTON (widget) && is_combo_box_child (widget)) ||
+ (IS_DETAIL (detail, "optionmenu")) )
{
/* FIXME: Support GtkComboBoxEntry too (using kThemeComboBox). */
CGContextRef context;
@@ -543,7 +549,7 @@ draw_box (GtkStyle *style,
context,
kHIThemeOrientationNormal,
NULL);
-
+
release_context (window, context);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]