summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2012-08-01 18:46:33 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:37 +0100
commit7bebddbde7bc6aeef0cbacc46df5bd3a4162160a (patch)
treec2643290450ddf806bff6a5dac4ced4f6a2521b8 /perl-install/mygtk3.pm
parente1ecdac525d20120a4e67fa6ee5b6d0362922f45 (diff)
downloaddrakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar.gz
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar.bz2
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.tar.xz
drakx-7bebddbde7bc6aeef0cbacc46df5bd3a4162160a.zip
(import_style_ressources) convert Galaxy theme to CSS
(styling has totally changed in gtk+3)
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index ff0516529..318555786 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -1568,7 +1568,9 @@ sub pixmap_from_pixbuf {
sub import_style_ressources() {
if (!$::isInstall) {
- Gtk3::Rc->parse_string(scalar cat_('/usr/share/libDrakX/themes-galaxy.rc')); # FIXME DEBUG
+ my $pl = Gtk3::CssProvider->new;
+ $pl->load_from_path('/usr/share/libDrakX/themes-galaxy.css'); # FIXME DEBUG
+ my $cx = Gtk3::StyleContext::add_provider_for_screen(Gtk3::Gdk::Screen::get_default(), $pl, Gtk3::STYLE_PROVIDER_PRIORITY_APPLICATION);
}
}