diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-10-05 18:43:12 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-10-05 18:43:12 +0000 |
commit | ea6f7326f572f05834c2dbd0356c301050f1b95f (patch) | |
tree | 3c64c5d656919eb0619c47a01452c277d10a3aa8 /perl-install/diskdrake | |
parent | 8df137184cab6645de5717f81c3403c304185200 (diff) | |
download | drakx-backup-do-not-use-ea6f7326f572f05834c2dbd0356c301050f1b95f.tar drakx-backup-do-not-use-ea6f7326f572f05834c2dbd0356c301050f1b95f.tar.gz drakx-backup-do-not-use-ea6f7326f572f05834c2dbd0356c301050f1b95f.tar.bz2 drakx-backup-do-not-use-ea6f7326f572f05834c2dbd0356c301050f1b95f.tar.xz drakx-backup-do-not-use-ea6f7326f572f05834c2dbd0356c301050f1b95f.zip |
rewrite partitionning wizard to look better in gtk (not perfect yet)
Diffstat (limited to 'perl-install/diskdrake')
-rw-r--r-- | perl-install/diskdrake/hd_gtk.pm | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/perl-install/diskdrake/hd_gtk.pm b/perl-install/diskdrake/hd_gtk.pm index 6622c3f90..5306fc6fa 100644 --- a/perl-install/diskdrake/hd_gtk.pm +++ b/perl-install/diskdrake/hd_gtk.pm @@ -44,6 +44,13 @@ notebook current_kind[] =cut +sub load_theme { + my $rc = "/usr/share/libDrakX/diskdrake.rc"; + -r $rc or $rc = dirname(__FILE__) . "/../diskdrake.rc"; + -r $rc or $rc = dirname(__FILE__) . "/../share/diskdrake.rc"; + Gtk2::Rc->parse($rc); +} + sub main { ($in, $all_hds, $do_force_reload) = @_; @@ -53,10 +60,8 @@ sub main { $w = ugtk2->new(N("Partitioning")); $::main_window = $w->{real_window} if !$::isEmbedded && !$::isInstall; - my $rc = "/usr/share/libDrakX/diskdrake.rc"; - -r $rc or $rc = dirname(__FILE__) . "/../diskdrake.rc"; - -r $rc or $rc = dirname(__FILE__) . "/../share/diskdrake.rc"; - Gtk2::Rc->parse($rc); + + load_theme(); # TODO # is_empty_array_ref($all_hds->{raids}) or raid::stopAll; |