Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Education (http://www.linux-archive.org/ubuntu-education/)
-   -   Disable minimize and maximize buttons on s-c-u (#747829) (http://www.linux-archive.org/ubuntu-education/594611-disable-minimize-maximize-buttons-s-c-u-747829-a.html)

Martin Gracik 11-04-2011 01:27 PM

Disable minimize and maximize buttons on s-c-u (#747829)
 
---
firstboot.spec | 3 ++-
modules/create_user.py | 19 +++----------------
2 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/firstboot.spec b/firstboot.spec
index 8e950a0..93e9a18 100644
--- a/firstboot.spec
+++ b/firstboot.spec
@@ -18,7 +18,8 @@ BuildRequires: gettext
BuildRequires: python-devel, python-setuptools-devel
BuildRequires: systemd-units
Requires: pygtk2, python
-Requires: setuptool, libuser-python, system-config-users, system-config-date
+Requires: setuptool, libuser-python, system-config-date
+Requires: system-config-users >= 1.2.111-1
Requires: authconfig-gtk, python-meh
Requires: system-config-keyboard
Requires: python-ethtool
diff --git a/modules/create_user.py b/modules/create_user.py
index 5408f67..3050852 100644
--- a/modules/create_user.py
+++ b/modules/create_user.py
@@ -39,6 +39,7 @@ _ = lambda x: gettext.ldgettext("firstboot", x)
N_ = lambda x: x

sys.path.append("/usr/share/system-config-users")
+import mainWindow
import userGroupCheck

class moduleClass(Module):
@@ -512,19 +513,5 @@ class moduleClass(Module):
confirmIcon.hide()

def _runSCU(self, *args):
- i = gtk.Invisible()
- i.grab_add()
-
- pid = start_process("/usr/bin/system-config-users")
-
- while True:
- while gtk.events_pending():
- gtk.main_iteration_do()
-
- child_pid, status = os.waitpid(pid, os.WNOHANG)
- if child_pid == pid:
- break
- else:
- time.sleep(0.1)
-
- i.grab_remove ()
+ reload(mainWindow)
+ win = mainWindow.mainWindow(firstboot=True)
--
1.7.5.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 03:57 AM.

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