Finishing touches

Implement popups in the editor, fix window sizing, fix RTL flipping.
GtkColorPlane is now using adjustments, and GtkColorEditor is using
adjustments as its model as well.
This commit is contained in:
Matthias Clasen
2012-02-03 01:41:45 -05:00
parent cd300835d7
commit f2aaffaf07
5 changed files with 472 additions and 181 deletions

View File

@ -232,9 +232,16 @@ scale_draw (GtkWidget *widget,
if (scale_has_asymmetric_thumb (widget))
{
if (gtk_orientable_get_orientation (GTK_ORIENTABLE (widget)) == GTK_ORIENTATION_VERTICAL)
cairo_rectangle (cr, width / 2, 1, width / 2 - 1, height - 2);
{
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
cairo_rectangle (cr, 1, 1, width / 2 - 1, height - 2);
else
cairo_rectangle (cr, width / 2, 1, width / 2 - 1, height - 2);
}
else
cairo_rectangle (cr, 1, 1, width - 2, height / 2);
{
cairo_rectangle (cr, 1, 1, width - 2, height / 2);
}
}
else
cairo_rectangle (cr, 1, 1, width - 2, height - 2);