mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
gtk-demo: Update some ifdefed code
This was from a time when we had arcs.
This commit is contained in:
parent
d849a53b98
commit
76df3ade18
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include "paintable.h"
|
#include "paintable.h"
|
||||||
|
|
||||||
|
#undef SHOW_CONTROLS
|
||||||
|
|
||||||
#define GTK_TYPE_SPINNER_PAINTABLE (gtk_spinner_paintable_get_type ())
|
#define GTK_TYPE_SPINNER_PAINTABLE (gtk_spinner_paintable_get_type ())
|
||||||
G_DECLARE_FINAL_TYPE (GtkSpinnerPaintable, gtk_spinner_paintable, GTK, SPINNER_PAINTABLE, GObject)
|
G_DECLARE_FINAL_TYPE (GtkSpinnerPaintable, gtk_spinner_paintable, GTK, SPINNER_PAINTABLE, GObject)
|
||||||
|
|
||||||
@ -150,6 +152,7 @@ static gboolean
|
|||||||
add_controls (GskPathOperation op,
|
add_controls (GskPathOperation op,
|
||||||
const graphene_point_t *pts,
|
const graphene_point_t *pts,
|
||||||
gsize n_pts,
|
gsize n_pts,
|
||||||
|
float weight,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
GskPathBuilder *builder = data;
|
GskPathBuilder *builder = data;
|
||||||
@ -166,7 +169,7 @@ add_controls (GskPathOperation op,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GSK_PATH_QUAD:
|
case GSK_PATH_QUAD:
|
||||||
case GSK_PATH_ARC:
|
case GSK_PATH_CONIC:
|
||||||
gsk_path_builder_line_to (builder, pts[1].x, pts[1].y);
|
gsk_path_builder_line_to (builder, pts[1].x, pts[1].y);
|
||||||
gsk_path_builder_line_to (builder, pts[2].x, pts[2].y);
|
gsk_path_builder_line_to (builder, pts[2].x, pts[2].y);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user