Commit 23c5f113 authored by Matthias Clasen's avatar Matthias Clasen

inspector: Make header buttons as !focus-on-click

Moving the focus to the header bar is unexpected and disruptive,
so don't do it.
parent c5b7f9f1
......@@ -173,6 +173,7 @@ gtk_inspector_window_init (GtkInspectorWindow *iw)
{
button = gtk_button_new_from_icon_name ("find-location-symbolic",
GTK_ICON_SIZE_MENU);
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
gtk_widget_set_halign (button, GTK_ALIGN_START);
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
g_signal_connect (button, "clicked",
......
......@@ -20,6 +20,7 @@
<child>
<object class="GtkButton" id="select_object">
<property name="visible">True</property>
<property name="focus-on-click">False</property>
<property name="tooltip-text" translatable="yes">Select an Object</property>
<property name="halign">center</property>
<property name="valign">center</property>
......@@ -42,6 +43,7 @@
<child>
<object class="GtkButton" id="object_details_button">
<property name="visible">True</property>
<property name="focus-on-click">False</property>
<property name="tooltip-text" translatable="yes">Show Details</property>
<property name="halign">center</property>
<property name="valign">center</property>
......@@ -64,6 +66,7 @@
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="focus-on-click">False</property>
<property name="tooltip-text" translatable="yes">Show all Objects</property>
<property name="halign">center</property>
<property name="valign">center</property>
......@@ -93,6 +96,7 @@
<child>
<object class="GtkToggleButton" id="record_statistics_button">
<property name="visible">True</property>
<property name="focus-on-click">False</property>
<property name="tooltip-text" translatable="yes">Collect Statistics</property>
<property name="halign">start</property>
<property name="valign">center</property>
......@@ -119,6 +123,7 @@
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="focus-on-click">False</property>
<property name="tooltip-text" translatable="yes">Show Details</property>
<property name="halign">center</property>
<property name="valign">center</property>
......@@ -140,6 +145,7 @@
<child>
<object class="GtkButton">
<property name="visible">True</property>
<property name="focus-on-click">False</property>
<property name="tooltip-text" translatable="yes">Show all Resources</property>
<property name="halign">center</property>
<property name="valign">center</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment