mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
Remove GtkOrientation parameter from gtk_render_handle().
The case for paned can be guessed out from the height and width, for handlebox the orientation parameter doesn't make much sense, and this way it could also be used for resize grips.
This commit is contained in:
parent
e8c103f652
commit
59b0fa8133
@ -3135,8 +3135,7 @@ gtk_default_draw_handle (GtkStyle *style,
|
||||
(gdouble) x,
|
||||
(gdouble) y,
|
||||
(gdouble) width,
|
||||
(gdouble) height,
|
||||
orientation);
|
||||
(gdouble) height);
|
||||
|
||||
cairo_restore (cr);
|
||||
gtk_style_context_restore (context);
|
||||
|
@ -2385,8 +2385,7 @@ gtk_render_handle (GtkStyleContext *context,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble width,
|
||||
gdouble height,
|
||||
GtkOrientation orientation)
|
||||
gdouble height)
|
||||
{
|
||||
GtkStyleContextPrivate *priv;
|
||||
GtkThemingEngineClass *engine_class;
|
||||
@ -2400,5 +2399,5 @@ gtk_render_handle (GtkStyleContext *context,
|
||||
store_animation_region (context, x, y, width, height);
|
||||
|
||||
_gtk_theming_engine_set_context (priv->theming_engine, context);
|
||||
engine_class->render_handle (priv->theming_engine, cr, x, y, width, height, orientation);
|
||||
engine_class->render_handle (priv->theming_engine, cr, x, y, width, height);
|
||||
}
|
||||
|
@ -255,8 +255,13 @@ void gtk_render_handle (GtkStyleContext *context,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble width,
|
||||
gdouble height,
|
||||
GtkOrientation orientation);
|
||||
gdouble height);
|
||||
void gtk_render_progress (GtkStyleContext *context,
|
||||
cairo_t *cr,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble width,
|
||||
gdouble height);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -126,8 +126,7 @@ static void gtk_theming_engine_render_handle (GtkThemingEngine *engine,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble width,
|
||||
gdouble height,
|
||||
GtkOrientation orientation);
|
||||
gdouble height);
|
||||
|
||||
G_DEFINE_TYPE (GtkThemingEngine, gtk_theming_engine, G_TYPE_OBJECT)
|
||||
|
||||
@ -1998,8 +1997,7 @@ gtk_theming_engine_render_handle (GtkThemingEngine *engine,
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble width,
|
||||
gdouble height,
|
||||
GtkOrientation orientation)
|
||||
gdouble height)
|
||||
{
|
||||
GtkStateFlags flags;
|
||||
GdkColor *bg_color;
|
||||
@ -2023,7 +2021,7 @@ gtk_theming_engine_render_handle (GtkThemingEngine *engine,
|
||||
|
||||
if (gtk_theming_engine_has_class (engine, "paned"))
|
||||
{
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
if (width > height)
|
||||
for (xx = x + width / 2 - 15; xx <= x + width / 2 + 15; xx += 5)
|
||||
render_dot (cr, &lighter, &darker, xx, y + height / 2 - 1, 3);
|
||||
else
|
||||
|
@ -130,8 +130,7 @@ struct GtkThemingEngineClass
|
||||
gdouble x,
|
||||
gdouble y,
|
||||
gdouble width,
|
||||
gdouble height,
|
||||
GtkOrientation orientation);
|
||||
gdouble height);
|
||||
};
|
||||
|
||||
GType gtk_theming_engine_get_type (void) G_GNUC_CONST;
|
||||
|
Loading…
Reference in New Issue
Block a user