forked from AuroraMiddleware/gtk
inspector: Use display name instead of screen name
This is for future compatibility as they are guaranteed to be identical.
This commit is contained in:
parent
f7cebf5c1f
commit
9222b4cd7c
@ -374,7 +374,6 @@ translate_subpixel_layout (GdkSubpixelLayout subpixel)
|
|||||||
static void
|
static void
|
||||||
populate_display (GdkScreen *screen, GtkInspectorGeneral *gen)
|
populate_display (GdkScreen *screen, GtkInspectorGeneral *gen)
|
||||||
{
|
{
|
||||||
gchar *name;
|
|
||||||
gint i;
|
gint i;
|
||||||
GList *children, *l;
|
GList *children, *l;
|
||||||
GtkWidget *child;
|
GtkWidget *child;
|
||||||
@ -396,9 +395,9 @@ populate_display (GdkScreen *screen, GtkInspectorGeneral *gen)
|
|||||||
}
|
}
|
||||||
g_list_free (children);
|
g_list_free (children);
|
||||||
|
|
||||||
name = gdk_screen_make_display_name (screen);
|
display = gdk_screen_get_display (screen);
|
||||||
gtk_label_set_label (GTK_LABEL (gen->priv->display_name), name);
|
|
||||||
g_free (name);
|
gtk_label_set_label (GTK_LABEL (gen->priv->display_name), gdk_display_get_name (display));
|
||||||
|
|
||||||
if (gdk_screen_get_rgba_visual (screen) != NULL)
|
if (gdk_screen_get_rgba_visual (screen) != NULL)
|
||||||
gtk_widget_show (gen->priv->display_rgba);
|
gtk_widget_show (gen->priv->display_rgba);
|
||||||
@ -406,7 +405,6 @@ populate_display (GdkScreen *screen, GtkInspectorGeneral *gen)
|
|||||||
if (gdk_screen_is_composited (screen))
|
if (gdk_screen_is_composited (screen))
|
||||||
gtk_widget_show (gen->priv->display_composited);
|
gtk_widget_show (gen->priv->display_composited);
|
||||||
|
|
||||||
display = gdk_screen_get_display (screen);
|
|
||||||
n_monitors = gdk_display_get_n_monitors (display);
|
n_monitors = gdk_display_get_n_monitors (display);
|
||||||
for (i = 0; i < n_monitors; i++)
|
for (i = 0; i < n_monitors; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user