Commit 8d2786f1 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

[acronyms] Update config window layout

parent b390a463
...@@ -42,7 +42,7 @@ class ConfigDialog(Gtk.ApplicationWindow): ...@@ -42,7 +42,7 @@ class ConfigDialog(Gtk.ApplicationWindow):
self._plugin = plugin self._plugin = plugin
self.add(self._ui.grid) self.add(self._ui.box)
self._fill_list() self._fill_list()
self.show_all() self.show_all()
......
...@@ -10,27 +10,21 @@ ...@@ -10,27 +10,21 @@
<column type="gchararray"/> <column type="gchararray"/>
</columns> </columns>
</object> </object>
<object class="GtkGrid" id="grid"> <object class="GtkBox" id="box">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">12</property> <property name="border_width">18</property>
<property name="margin_right">12</property> <property name="orientation">vertical</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="row_spacing">6</property>
<child> <child>
<object class="GtkScrolledWindow"> <object class="GtkScrolledWindow">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<property name="shadow_type">in</property> <property name="shadow_type">in</property>
<child> <child>
<object class="GtkTreeView" id="acronyms_treeview"> <object class="GtkTreeView" id="acronyms_treeview">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="model">acronyms_store</property> <property name="model">acronyms_store</property>
<property name="search_column">1</property> <property name="search_column">1</property>
<child internal-child="selection"> <child internal-child="selection">
...@@ -78,61 +72,51 @@ ...@@ -78,61 +72,51 @@
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="expand">False</property>
<property name="top_attach">0</property> <property name="fill">True</property>
<property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButtonBox"> <object class="GtkToolbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="toolbar_style">icons</property>
<property name="icon_size">4</property>
<child> <child>
<object class="GtkButton"> <object class="GtkToolButton">
<property name="visible">True</property> <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="tooltip_text" translatable="yes">Add</property>
<property name="halign">start</property> <property name="icon_name">list-add-symbolic</property>
<signal name="clicked" handler="_on_add_clicked" swapped="no"/> <signal name="clicked" handler="_on_add_clicked" swapped="no"/>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">list-add-symbolic</property>
</object>
</child>
<style>
<class name="suggested-action"/>
</style>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="homogeneous">True</property>
<property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkButton"> <object class="GtkToolButton">
<property name="label" translatable="yes">Remove</property>
<property name="visible">True</property> <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="tooltip_text" translatable="yes">Remove</property>
<property name="halign">end</property> <property name="icon_name">list-remove-symbolic</property>
<signal name="clicked" handler="_on_remove_clicked" swapped="no"/> <signal name="clicked" handler="_on_remove_clicked" swapped="no"/>
<style>
<class name="destructive-action"/>
</style>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="homogeneous">True</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing> </packing>
</child> </child>
<style>
<class name="inline-toolbar"/>
</style>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="expand">False</property>
<property name="top_attach">1</property> <property name="fill">True</property>
<property name="position">1</property>
</packing> </packing>
</child> </child>
</object> </object>
......
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