[gtk-quartz-engine] support vertical progressbars
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-quartz-engine] support vertical progressbars
- Date: Sat, 9 Oct 2010 18:07:17 +0000 (UTC)
commit 68d544780d39e409d4da685750719aa7e404f742
Author: Rob Caelers <robc krandor org>
Date: Mon Jun 1 21:03:19 2009 +0200
support vertical progressbars
src/quartz-style.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/quartz-style.c b/src/quartz-style.c
index d516a71..86f039a 100644
--- a/src/quartz-style.c
+++ b/src/quartz-style.c
@@ -1,6 +1,7 @@
/* GTK+ theme engine for the Quartz backend
*
* Copyright (C) 2007-2008 Imendio AB
+ * Copyright (C) 2009 Rob Caelers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -834,9 +835,20 @@ draw_box (GtkStyle *style,
draw_info.min = 0;
draw_info.max = 100;
draw_info.value = gtk_progress_bar_get_fraction (GTK_PROGRESS_BAR (widget)) * 100;
- draw_info.attributes = kThemeTrackHorizontal;
draw_info.trackInfo.progress.phase = 0; /* for indeterminate ones */
+ switch (gtk_progress_bar_get_orientation (GTK_PROGRESS_BAR (widget)))
+ {
+ case GTK_PROGRESS_LEFT_TO_RIGHT:
+ case GTK_PROGRESS_RIGHT_TO_LEFT:
+ draw_info.attributes = kThemeTrackHorizontal;
+ break;
+
+ default:
+ draw_info.attributes = 0;
+ break;
+ }
+
context = get_context (window, area);
if (!context)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]