[evince/wip/gpoo/ev-zoom-avoid-show-all: 2/2] shell: Avoid gtk_window_show_all in EvPassword
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/ev-zoom-avoid-show-all: 2/2] shell: Avoid gtk_window_show_all in EvPassword
- Date: Thu, 31 Mar 2022 01:00:26 +0000 (UTC)
commit d3e94137f4655ee7970e3454a30bea85d4b171c0
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Mon Mar 28 01:00:35 2022 -0300
shell: Avoid gtk_window_show_all in EvPassword
shell/ev-password-view.c | 2 --
shell/evince-password-view.ui | 6 ++++++
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c
index 8a467f880..b687de0b2 100644
--- a/shell/ev-password-view.c
+++ b/shell/ev-password-view.c
@@ -357,8 +357,6 @@ ev_password_view_new (GtkWindow *parent)
priv->parent_window = parent;
- gtk_widget_show_all (GTK_WIDGET (retval));
-
return GTK_WIDGET (retval);
}
diff --git a/shell/evince-password-view.ui b/shell/evince-password-view.ui
index 5afb89227..24564067f 100644
--- a/shell/evince-password-view.ui
+++ b/shell/evince-password-view.ui
@@ -2,16 +2,19 @@
<interface>
<!-- interface-requires gtk+ 3.22 -->
<template class="EvPasswordView" parent="GtkViewport">
+ <property name="visible">True</property>
<child>
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
<property name="spacing">24</property>
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_CENTER</property>
+ <property name="visible">True</property>
<child>
<object class="GtkImage">
<property name="icon-name">dialog-password-symbolic</property>
<property name="icon-size">6</property>
+ <property name="visible">True</property>
</object>
</child>
<child>
@@ -20,16 +23,19 @@
<property name="wrap">True</property>
<property name="max-width-chars">64</property>
<property name="wrap-mode">char</property>
+ <property name="visible">True</property>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<property name="halign">GTK_ALIGN_CENTER</property>
+ <property name="visible">True</property>
<child>
<object class="GtkButton">
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Unlock Document</property>
+ <property name="visible">True</property>
<signal name="clicked" handler="ev_password_view_clicked_cb" />
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]