Skip to content

Commit

Permalink
Tweak window size
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Sep 6, 2015
1 parent 922a6c3 commit 4164c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 3 additions & 4 deletions mockup.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def do_activate(self):


def copy_properties(src, dest):
blacklist = ('events', 'child', 'parent', 'input-hints', 'buffer', 'tabs', 'completion', 'model')
blacklist = ('events', 'child', 'parent', 'input-hints', 'buffer', 'tabs', 'completion', 'model', 'type')
for prop in src.props:
if prop.flags & GObject.ParamFlags.DEPRECATED != 0:
continue
Expand Down Expand Up @@ -247,13 +247,12 @@ def __init__(self, app):
main_window = builder.get_object('main_window')
main_box = builder.get_object('main_box')
headerbar = builder.get_object('headerbar')
copy_properties(main_window, self)
main_window.set_titlebar(None)
main_window.remove(main_box)
main_window.destroy()
self.add(main_box)
self.set_titlebar(headerbar)
self.set_default_size(800, 500)
self.props.window_position = Gtk.WindowPosition.CENTER
main_window.destroy()

# Cannot store these in the same .ui file nor hook them up in the
# .ui because glade doesn't support that and strips both the
Expand Down
6 changes: 4 additions & 2 deletions src/gtimelog/experiment.ui
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
</object>
<object class="GtkApplicationWindow" id="main_window">
<property name="can_focus">False</property>
<property name="default_width">800</property>
<property name="default_height">500</property>
<property name="default_width">850</property>
<property name="default_height">550</property>
<property name="window_position">center</property>
<property name="icon">gtimelog.png</property>
<child>
<object class="GtkBox" id="main_box">
<property name="visible">True</property>
Expand Down

0 comments on commit 4164c09

Please sign in to comment.