Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora/Linux Management Tools (http://www.linux-archive.org/fedora-linux-management-tools/)
-   -   don't show ui dialogs in construction time (http://www.linux-archive.org/fedora-linux-management-tools/237148-dont-show-ui-dialogs-construction-time.html)

Vitaly Mayatskikh 01-30-2009 01:31 PM

don't show ui dialogs in construction time
 
Hi!

There are calls to hide_all() method after construction of vmm-manager
and vmm-details dialogs to prevent possible flickering during
appending more elements to these dialogs. However, it is possible to
declare visibility property in xml files and to prevent libglade to
show dialogs automatically.

diff -r 375f441f26e1 src/virtManager/details.py
--- a/src/virtManager/details.py Mon Jan 26 13:07:58 2009 -0500
+++ b/src/virtManager/details.py Fri Jan 30 15:25:40 2009 +0100
@@ -107,7 +107,6 @@
self.vm = vm

topwin = self.window.get_widget("vmm-details")
- topwin.hide_all()
self.err = vmmErrorDialog(topwin,
0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE,
_("Unexpected Error"),
diff -r 375f441f26e1 src/virtManager/manager.py
--- a/src/virtManager/manager.py Mon Jan 26 13:07:58 2009 -0500
+++ b/src/virtManager/manager.py Fri Jan 30 15:25:40 2009 +0100
@@ -112,7 +112,6 @@
def __init__(self, config, engine):
self.__gobject_init__()
self.window = gtk.glade.XML(config.get_glade_dir() + "/vmm-manager.glade", "vmm-manager", domain="virt-manager")
- self.window.get_widget("vmm-manager").hide_all()
self.err = vmmErrorDialog(self.window.get_widget("vmm-manager"),
0, gtk.MESSAGE_ERROR, gtk.BUTTONS_CLOSE,
_("Unexpected Error"),
diff -r 375f441f26e1 src/vmm-details.glade
--- a/src/vmm-details.glade Mon Jan 26 13:07:58 2009 -0500
+++ b/src/vmm-details.glade Fri Jan 30 15:25:40 2009 +0100
@@ -3,7 +3,7 @@
<!--*- mode: xml -*-->
<glade-interface>
<widget class="GtkWindow" id="vmm-details">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="title" translatable="yes">Virtual Machine</property>
<property name="default_width">700</property>
<property name="default_height">540</property>
diff -r 375f441f26e1 src/vmm-manager.glade
--- a/src/vmm-manager.glade Mon Jan 26 13:07:58 2009 -0500
+++ b/src/vmm-manager.glade Fri Jan 30 15:25:40 2009 +0100
@@ -3,7 +3,7 @@
<!--*- mode: xml -*-->
<glade-interface>
<widget class="GtkWindow" id="vmm-manager">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="title" translatable="yes">Virtual Machine Manager</property>
<property name="default_width">700</property>
<property name="default_height">500</property>
--
wbr, Vitaly

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Cole Robinson 02-06-2009 06:14 PM

don't show ui dialogs in construction time
 
Vitaly Mayatskikh wrote:
> Hi!
>
> There are calls to hide_all() method after construction of vmm-manager
> and vmm-details dialogs to prevent possible flickering during
> appending more elements to these dialogs. However, it is possible to
> declare visibility property in xml files and to prevent libglade to
> show dialogs automatically.
>

Thanks, applied:

http://hg.et.redhat.com/cgi-bin/hg-virt.cgi/applications/virt-manager--devel/rev/f9c2636a8a32

- Cole

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


All times are GMT. The time now is 11:13 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.