inspector: Remove leftover GDK_PRIVATE_CALL()s

This commit is contained in:
Benjamin Otte 2016-11-24 15:41:19 +01:00
parent 4b6e70b9c8
commit d7876bde74

View File

@ -777,7 +777,7 @@ init_gl (GtkInspectorVisual *vis)
{
GdkGLFlags flags;
flags = GDK_PRIVATE_CALL (gdk_gl_get_flags) ();
flags = gdk_gl_get_flags ();
if (flags & GDK_GL_ALWAYS)
gtk_combo_box_set_active_id (GTK_COMBO_BOX (vis->priv->gl_combo), "always");
@ -812,7 +812,7 @@ init_rendering_mode (GtkInspectorVisual *vis)
{
GdkRenderingMode mode;
mode = GDK_PRIVATE_CALL (gdk_display_get_rendering_mode) (gdk_display_get_default ());
mode = gdk_display_get_rendering_mode (gdk_display_get_default ());
gtk_combo_box_set_active (GTK_COMBO_BOX (vis->priv->rendering_mode_combo), mode);
}
@ -823,7 +823,7 @@ rendering_mode_changed (GtkComboBox *c,
GdkRenderingMode mode;
mode = gtk_combo_box_get_active (c);
GDK_PRIVATE_CALL (gdk_display_set_rendering_mode) (gdk_display_get_default (), mode);
gdk_display_set_rendering_mode (gdk_display_get_default (), mode);
}
static void
@ -832,14 +832,14 @@ update_gl_flag (GtkSwitch *sw,
{
GdkGLFlags flags;
flags = GDK_PRIVATE_CALL (gdk_gl_get_flags) ();
flags = gdk_gl_get_flags ();
if (gtk_switch_get_active (sw))
flags |= flag;
else
flags &= ~flag;
GDK_PRIVATE_CALL (gdk_gl_set_flags) (flags);
gdk_gl_set_flags (flags);
}
static void