FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 01-30-2009, 01:31 PM
Vitaly Mayatskikh
 
Default 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
 
Old 02-06-2009, 06:14 PM
Cole Robinson
 
Default 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
 

Thread Tools




All times are GMT. The time now is 12:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org