Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Commit dc28316

Browse files
committed
DocList: Make the GtkRevealer widget of the doc properties panel only visible when switching for the first time to the doc properties panel:
* Make the warnings regarding GtkRevealer size disappear * Solve the doc list refresh problem on Ubuntu Gnome 16.10 Signed-off-by: Jerome Flesch <[email protected]>
1 parent a1bf890 commit dc28316

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/paperwork/frontend/mainwindow/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,6 +3009,8 @@ def switch_leftpane(self, to):
30093009
for (name, revealers) in self.left_revealers.items():
30103010
visible = (to == name)
30113011
for revealer in revealers:
3012+
if visible:
3013+
revealer.set_visible(visible)
30123014
revealer.set_reveal_child(visible)
30133015

30143016
def on_search_results_cb(self, search, documents):

src/paperwork/frontend/mainwindow/mainwindow.glade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@
565565

566566
<child>
567567
<object class="GtkRevealer" id="box_left_docproperties_revealer">
568-
<property name="visible">True</property>
568+
<property name="visible">False</property>
569569
<property name="reveal_child">False</property>
570570
<property name="transition_duration">333</property>
571571
<property name="transition_type">slide-right</property>

0 commit comments

Comments
 (0)