Skip to content

Commit

Permalink
fix(ui): prevent focus in panel buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jtheoof committed Jan 4, 2020
1 parent f356ff9 commit 903ad11
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions res/swappy.ui
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
<property name="image">edit-redo</property>
<property name="always_show_image">True</property>
<signal name="clicked" handler="redo_clicked_handler" swapped="no"/>
<accelerator key="y" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
<accelerator key="z" signal="clicked" modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/>
<accelerator key="y" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -254,7 +254,7 @@
<object class="GtkRadioButton" id="brush">
<property name="label" translatable="yes"></property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="active">True</property>
<property name="draw_indicator">False</property>
Expand All @@ -270,7 +270,7 @@
<object class="GtkRadioButton" id="text">
<property name="label" translatable="yes"></property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">False</property>
<property name="group">brush</property>
Expand All @@ -286,7 +286,7 @@
<object class="GtkRadioButton" id="rectangle">
<property name="label" translatable="yes"></property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">False</property>
<property name="group">brush</property>
Expand All @@ -302,7 +302,7 @@
<object class="GtkRadioButton" id="ellipse">
<property name="label" translatable="yes"></property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">False</property>
<property name="group">brush</property>
Expand All @@ -318,7 +318,7 @@
<object class="GtkRadioButton" id="arrow">
<property name="label" translatable="yes"></property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">False</property>
<property name="draw_indicator">False</property>
<property name="group">brush</property>
Expand Down Expand Up @@ -356,7 +356,8 @@
<child>
<object class="GtkRadioButton" id="color-red-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="draw_indicator">False</property>
Expand All @@ -380,7 +381,8 @@
<child>
<object class="GtkRadioButton" id="color-green-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="draw_indicator">False</property>
Expand All @@ -405,7 +407,8 @@
<child>
<object class="GtkRadioButton" id="color-blue-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="draw_indicator">False</property>
Expand Down Expand Up @@ -446,7 +449,8 @@
<child>
<object class="GtkRadioButton" id="color-custom-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="focus_on_click">False</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="draw_indicator">False</property>
Expand All @@ -470,7 +474,7 @@
<object class="GtkColorButton" id="custom-color-button">
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">True</property>
<property name="valign">center</property>
<property name="title" translatable="yes"/>
Expand Down Expand Up @@ -518,7 +522,7 @@
<child>
<object class="GtkButton" id="minus-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">True</property>
<property name="image">zoom-out</property>
<property name="always_show_image">True</property>
Expand All @@ -533,7 +537,7 @@
<child>
<object class="GtkButton" id="stroke-size-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">True</property>
<property name="always_show_image">True</property>
<signal name="clicked" handler="stroke_size_reset_handler" swapped="no"/>
Expand All @@ -547,7 +551,7 @@
<child>
<object class="GtkButton" id="plus-button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_focus">False</property>
<property name="receives_default">True</property>
<property name="image">zoom-in</property>
<property name="always_show_image">True</property>
Expand Down

0 comments on commit 903ad11

Please sign in to comment.