mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 18:30:08 +00:00
Fix fallout from the show-close-button rename
I had overlooked ui files. We should really validate those during build.
This commit is contained in:
parent
276c462553
commit
029a84aa74
@ -6,7 +6,7 @@
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="">
|
||||
<property name="visible">True</property>
|
||||
<property name="show-close-button">True</property>
|
||||
<property name="show-title-buttons">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="info_label">
|
||||
<property name="visible">True</property>
|
||||
|
@ -24,7 +24,7 @@
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="headerbar">
|
||||
<property name="visible">1</property>
|
||||
<property name="show-close-button">1</property>
|
||||
<property name="show-title-buttons">1</property>
|
||||
<child>
|
||||
<object class="GtkButton">
|
||||
<property name="visible">1</property>
|
||||
|
@ -5,7 +5,7 @@
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar">
|
||||
<property name="visible">1</property>
|
||||
<property name="show-close-button">1</property>
|
||||
<property name="show-title-buttons">1</property>
|
||||
<property name="title" translatable="yes">Model Button</property>
|
||||
</object>
|
||||
</child>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<object class="GtkHeaderBar" id="header">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">Icon Browser</property>
|
||||
<property name="show-close-button">True</property>
|
||||
<property name="show-title-buttons">True</property>
|
||||
<child type="title">
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
|
@ -400,7 +400,7 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
|
||||
<property name="title">GTK+ Widget Factory</property>
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="headerbar1">
|
||||
<property name="show-close-button">1</property>
|
||||
<property name="show-title-buttons">1</property>
|
||||
<child type="title">
|
||||
<object class="GtkStackSwitcher" id="stack_switcher">
|
||||
<property name="stack">toplevel_stack</property>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="header">
|
||||
<property name="visible">True</property>
|
||||
<property name="show-close-button">True</property>
|
||||
<property name="show-title-buttons">True</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="lines_label">
|
||||
<property name="visible">False</property>
|
||||
|
@ -875,7 +875,7 @@ gtk_shortcuts_window_init (GtkShortcutsWindow *self)
|
||||
priv->search_image_group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
|
||||
|
||||
priv->header_bar = g_object_new (GTK_TYPE_HEADER_BAR,
|
||||
"show-close-button", TRUE,
|
||||
"show-title-buttons", TRUE,
|
||||
NULL);
|
||||
gtk_window_set_titlebar (GTK_WINDOW (self), GTK_WIDGET (priv->header_bar));
|
||||
|
||||
|
@ -5973,7 +5973,7 @@ create_titlebar (GtkWindow *window)
|
||||
g_object_set (titlebar,
|
||||
"title", priv->title ? priv->title : get_default_title (),
|
||||
"has-subtitle", FALSE,
|
||||
"show-close-button", TRUE,
|
||||
"show-title-buttons", TRUE,
|
||||
NULL);
|
||||
context = gtk_widget_get_style_context (titlebar);
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_TITLEBAR);
|
||||
|
@ -14,7 +14,7 @@
|
||||
<property name="icon">resource:///org/gtk/libgtk/inspector/logo.png</property>
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar">
|
||||
<property name="show-close-button">1</property>
|
||||
<property name="show-title-buttons">1</property>
|
||||
<child>
|
||||
<object class="GtkStack" id="button_stack">
|
||||
<property name="visible-child-name" bind-source="top_stack" bind-property="visible-child-name"/>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<child internal-child="headerbar">
|
||||
<object class="GtkHeaderBar" id="headerbar1">
|
||||
<property name="visible">1</property>
|
||||
<property name="show-close-button">1</property>
|
||||
<property name="show-title-buttons">1</property>
|
||||
<child type="title">
|
||||
<object class="GtkStackSwitcher" id="stack_switcher">
|
||||
<property name="visible">0</property>
|
||||
|
@ -7,7 +7,7 @@
|
||||
<signal name="delete-event" handler="gtk_dialog_delete_event_handler" swapped="no"/>
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="headerbar">
|
||||
<property name="show-close-button">1</property>
|
||||
<property name="show-title-buttons">1</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
|
@ -61,15 +61,15 @@ main (int argc, char *argv[])
|
||||
entry = (GtkWidget *)gtk_builder_get_object (builder, "layout-entry");
|
||||
g_object_bind_property (settings, "gtk-decoration-layout",
|
||||
entry, "text",
|
||||
G_BINDING_BIDIRECTIONAL|G_BINDING_SYNC_CREATE);
|
||||
G_BINDING_BIDIRECTIONAL|G_BINDING_SYNC_CREATE);
|
||||
check = (GtkWidget *)gtk_builder_get_object (builder, "decorations");
|
||||
header = (GtkWidget *)gtk_builder_get_object (builder, "sidebar-header");
|
||||
g_object_bind_property (check, "active",
|
||||
header, "show-close-button",
|
||||
G_BINDING_DEFAULT);
|
||||
g_object_bind_property (check, "active",
|
||||
header, "show-title-buttons",
|
||||
G_BINDING_DEFAULT);
|
||||
header = (GtkWidget *)gtk_builder_get_object (builder, "main-header");
|
||||
g_object_bind_property (check, "active",
|
||||
header, "show-close-button",
|
||||
g_object_bind_property (check, "active",
|
||||
header, "show-title-buttons",
|
||||
G_BINDING_DEFAULT);
|
||||
gtk_window_present (GTK_WINDOW (win));
|
||||
|
||||
|
@ -148,7 +148,7 @@ activate (GApplication *gapp)
|
||||
label = gtk_label_new ("Decorations");
|
||||
gtk_widget_set_halign (label, GTK_ALIGN_END);
|
||||
check = gtk_check_button_new ();
|
||||
g_object_bind_property (header, "show-close-button",
|
||||
g_object_bind_property (header, "show-title-buttons",
|
||||
check, "active",
|
||||
G_BINDING_BIDIRECTIONAL|G_BINDING_SYNC_CREATE);
|
||||
gtk_grid_attach (GTK_GRID (grid), label, 2, 0, 1, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user