mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Add flipping support to the expanders.
2002-02-03 Anders Carlsson <expander-master@gtk.org> * gtk/gtkstyle.c (gtk_default_draw_expander): Add flipping support to the expanders.
This commit is contained in:
parent
79b8237cc6
commit
4eca4af11b
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-02-03 Anders Carlsson <expander-master@gtk.org>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_default_draw_expander): Add
|
||||
flipping support to the expanders.
|
||||
|
||||
Sat Feb 2 21:54:01 2002 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
RC file lookup improvements (#68234, suggestions
|
||||
|
@ -4375,7 +4375,7 @@ gtk_default_draw_expander (GtkStyle *style,
|
||||
gint line_width;
|
||||
gdouble affine[6];
|
||||
gint degrees = 0;
|
||||
|
||||
|
||||
gtk_widget_style_get (widget,
|
||||
"expander_size", &expander_size,
|
||||
NULL);
|
||||
@ -4398,13 +4398,13 @@ gtk_default_draw_expander (GtkStyle *style,
|
||||
switch (expander_style)
|
||||
{
|
||||
case GTK_EXPANDER_COLLAPSED:
|
||||
degrees = 0;
|
||||
degrees = (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) ? 180 : 0;
|
||||
break;
|
||||
case GTK_EXPANDER_SEMI_COLLAPSED:
|
||||
degrees = 30;
|
||||
degrees = (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) ? 150 : 30;
|
||||
break;
|
||||
case GTK_EXPANDER_SEMI_EXPANDED:
|
||||
degrees = 60;
|
||||
degrees = (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) ? 120 : 60;
|
||||
break;
|
||||
case GTK_EXPANDER_EXPANDED:
|
||||
degrees = 90;
|
||||
@ -4412,7 +4412,7 @@ gtk_default_draw_expander (GtkStyle *style,
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
|
||||
create_expander_affine (affine, degrees, expander_size, x, y);
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user