mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 02:57:38 +00:00
inspector: Show GSETTINGS_SCHEMA_DIR when set
This commit is contained in:
parent
bce5a0f1a1
commit
614412e913
@ -54,6 +54,7 @@ struct _GtkInspectorGeneralPrivate
|
||||
GtkWidget *gtk_path;
|
||||
GtkWidget *gtk_exe_prefix;
|
||||
GtkWidget *gtk_data_prefix;
|
||||
GtkWidget *gsettings_schema_dir;
|
||||
GtkWidget *touchscreen_switch;
|
||||
};
|
||||
|
||||
@ -137,6 +138,7 @@ init_env (GtkInspectorGeneral *gen)
|
||||
set_path_label (gen->priv->gtk_path, "GTK_PATH");
|
||||
set_path_label (gen->priv->gtk_exe_prefix, "GTK_EXE_PREFIX");
|
||||
set_path_label (gen->priv->gtk_data_prefix, "GTK_DATA_PREFIX");
|
||||
set_path_label (gen->priv->gsettings_schema_dir, "GSETTINGS_SCHEMA_DIR");
|
||||
}
|
||||
|
||||
static void
|
||||
@ -194,6 +196,7 @@ gtk_inspector_general_class_init (GtkInspectorGeneralClass *klass)
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gtk_path);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gtk_exe_prefix);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gtk_data_prefix);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, gsettings_schema_dir);
|
||||
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorGeneral, touchscreen_switch);
|
||||
}
|
||||
|
||||
|
@ -246,6 +246,34 @@
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="orientation">horizontal</property>
|
||||
<property name="margin">10</property>
|
||||
<property name="spacing">40</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="gsettings_schema_dir_label">
|
||||
<property name="visible">True</property>
|
||||
<property name="label" translatable="yes">GSETTINGS_SCHEMA_DIR</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="valign">baseline</property>
|
||||
<property name="xalign">0.0</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="gsettings_schema_dir">
|
||||
<property name="visible">True</property>
|
||||
<property name="halign">end</property>
|
||||
<property name="valign">baseline</property>
|
||||
<property name="ellipsize">end</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
@ -301,6 +329,7 @@
|
||||
<widget name="gtk_path_label"/>
|
||||
<widget name="gtk_exe_prefix_label"/>
|
||||
<widget name="gtk_data_prefix_label"/>
|
||||
<widget name="gsettings_schema_dir_label"/>
|
||||
<widget name="touchscreen_label"/>
|
||||
</widgets>
|
||||
</object>
|
||||
|
Loading…
Reference in New Issue
Block a user