mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-17 02:30:47 +03:00
fix(ui): small tweaks
This commit is contained in:
parent
f6c189c7b7
commit
2b73777142
@ -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>
|
||||
@ -576,16 +576,11 @@
|
||||
<property name="can_focus">False</property>
|
||||
<property name="border_width">10</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDrawingArea" id="painting-area">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_BUTTON1_MOTION_MASK | GDK_BUTTON_PRESS_MASK |
|
||||
GDK_BUTTON_RELEASE_MASK
|
||||
</property>
|
||||
<property name="events">GDK_POINTER_MOTION_MASK | GDK_BUTTON1_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
|
||||
<signal name="button-press-event" handler="draw_area_button_press_handler" swapped="no"/>
|
||||
<signal name="button-release-event" handler="draw_area_button_release_handler" swapped="no"/>
|
||||
<signal name="configure-event" handler="draw_area_configure_handler" swapped="no"/>
|
||||
@ -594,7 +589,7 @@
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="fill">False</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
|
@ -491,7 +491,6 @@ static bool load_layout(struct swappy_state *state) {
|
||||
state->ui->stroke_size =
|
||||
GTK_BUTTON(gtk_builder_get_object(builder, "stroke-size-button"));
|
||||
|
||||
// gtk_popover_set_relative_to(ui, area);
|
||||
gtk_widget_set_size_request(area, geometry->width, geometry->height);
|
||||
|
||||
state->ui->brush = brush;
|
||||
|
Loading…
Reference in New Issue
Block a user