Commit b475b98d authored by Julian Sparber's avatar Julian Sparber

center all dialog title on dialog width and refactor glade file

parent d9059f04
...@@ -1853,62 +1853,33 @@ ...@@ -1853,62 +1853,33 @@
<object class="GtkHeaderBar"> <object class="GtkHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child type="title"> <property name="can_focus">False</property>
<object class="GtkBox"> <property name="title" translatable="yes">New direct chat</property>
<child>
<object class="GtkButton" id="cancel_direct_chat">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="receives_default">True</property>
<child> </object>
<object class="GtkButton" id="cancel_direct_chat"> </child>
<property name="label" translatable="yes">Cancel</property> <child>
<property name="visible">True</property> <object class="GtkButton" id="direct_chat_button">
<property name="can_focus">True</property> <property name="label" translatable="yes">Start chat</property>
<property name="receives_default">True</property> <property name="visible">True</property>
</object> <property name="can_focus">True</property>
<packing> <property name="receives_default">True</property>
<property name="expand">False</property> <style>
<property name="fill">True</property> <class name="suggested-action"/>
<property name="position">0</property> </style>
</packing>
</child>
<child>
<object class="GtkLabel" id="direct_chat_title">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">New direct chat</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="direct_chat_button">
<property name="label" translatable="yes">Start chat</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
<packing>
<property name="pack_type">end</property>
</packing>
</child> </child>
</object> </object>
</child> </child>
</object> </object>
<object class="GtkDialog" id="invite_user_dialog"> <object class="GtkDialog" id="invite_user_dialog">
<property name="width_request">400</property> <property name="width_request">400</property>
<property name="height_request">300</property> <property name="height_request">300</property>
...@@ -2156,58 +2127,29 @@ ...@@ -2156,58 +2127,29 @@
<object class="GtkHeaderBar"> <object class="GtkHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child type="title"> <property name="title" translatable="yes">Join to Room</property>
<object class="GtkBox"> <child>
<object class="GtkButton" id="cancel_join_room">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="receives_default">True</property>
<child>
<object class="GtkButton" id="cancel_join_room">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Join to Room</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="join_room_button">
<property name="label" translatable="yes">Join</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
</child> </child>
<child>
<object class="GtkButton" id="join_room_button">
<property name="label" translatable="yes">Join</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
</object> </object>
</child> </child>
</object> </object>
...@@ -2401,58 +2343,29 @@ ...@@ -2401,58 +2343,29 @@
<object class="GtkHeaderBar"> <object class="GtkHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child type="title"> <property name="title" translatable="yes">Create new Room</property>
<object class="GtkBox"> <child>
<object class="GtkButton" id="cancel_new_room">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="receives_default">True</property>
<child>
<object class="GtkButton" id="cancel_new_room">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Create new Room</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="new_room_button">
<property name="label" translatable="yes">Create</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
</child> </child>
<child>
<object class="GtkButton" id="new_room_button">
<property name="label" translatable="yes">Create</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="pack_type">end</property>
</packing>
</child>
</object> </object>
</child> </child>
</object> </object>
...@@ -2636,60 +2549,30 @@ ...@@ -2636,60 +2549,30 @@
<object class="GtkHeaderBar"> <object class="GtkHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child type="title"> <property name="title" translatable="yes">Room details</property>
<object class="GtkBox"> <child>
<object class="GtkButton" id="room_dialog_close">
<property name="label">gtk-cancel</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="receives_default">True</property>
<child> <property name="use_stock">True</property>
<object class="GtkButton" id="room_dialog_close"> </object>
<property name="label">gtk-cancel</property> </child>
<property name="visible">True</property> <child>
<property name="can_focus">True</property> <object class="GtkButton" id="room_dialog_set">
<property name="receives_default">True</property> <property name="label">gtk-apply</property>
<property name="use_stock">True</property> <property name="visible">True</property>
</object> <property name="can_focus">True</property>
<packing> <property name="receives_default">True</property>
<property name="expand">False</property> <property name="use_stock">True</property>
<property name="fill">False</property> <style>
<property name="position">0</property> <class name="suggested-action"/>
</packing> </style>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Room details</property>
<property name="justify">center</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="room_dialog_set">
<property name="label">gtk-apply</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
<style>
<class name="suggested-action"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">2</property>
</packing>
</child>
</object> </object>
<packing>
<property name="pack_type">end</property>
</packing>
</child> </child>
</object> </object>
</child> </child>
...@@ -2732,11 +2615,7 @@ ...@@ -2732,11 +2615,7 @@
<object class="GtkHeaderBar"> <object class="GtkHeaderBar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child type="title"> <property name="title" translatable="yes">Select room image file</property>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<child> <child>
<object class="GtkButton" id="file_chooser_cancel"> <object class="GtkButton" id="file_chooser_cancel">
<property name="label">gtk-cancel</property> <property name="label">gtk-cancel</property>
...@@ -2745,26 +2624,6 @@ ...@@ -2745,26 +2624,6 @@
<property name="receives_default">True</property> <property name="receives_default">True</property>
<property name="use_stock">True</property> <property name="use_stock">True</property>
</object> </object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Select room image file</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child> </child>
<child> <child>
<object class="GtkButton" id="file_chooser_set"> <object class="GtkButton" id="file_chooser_set">
...@@ -2778,13 +2637,9 @@ ...@@ -2778,13 +2637,9 @@
</style> </style>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="pack_type">end</property>
<property name="fill">False</property>
<property name="position">2</property>
</packing> </packing>
</child> </child>
</object>
</child>
</object> </object>
</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