summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-30 13:20:22 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-30 13:20:22 +0000
commitd993d1fcb490d37a6dfd63748ade74bf62bdecf9 (patch)
tree56b0ab7358a4715132329fe144f5e32a04f8a970
parent1fdcb25051bf31ad71f07d7591f33a84feaeba50 (diff)
downloaddraksnapshot-d993d1fcb490d37a6dfd63748ade74bf62bdecf9.tar
draksnapshot-d993d1fcb490d37a6dfd63748ade74bf62bdecf9.tar.gz
draksnapshot-d993d1fcb490d37a6dfd63748ade74bf62bdecf9.tar.bz2
draksnapshot-d993d1fcb490d37a6dfd63748ade74bf62bdecf9.tar.xz
draksnapshot-d993d1fcb490d37a6dfd63748ade74bf62bdecf9.zip
use regular Advanced button on 2008.1
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247129 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rw-r--r--NEWS2
-rwxr-xr-xdraksnapshot-config6
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 4cbfb32..34dcae1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
- applet:
o fix crash if DBus is active but Hal isn't (#44434)
+- configurator:
+ o use regular Advanced button on 2008.1
Version 0.17 - 30 September 2008, Thierry Vignaud
diff --git a/draksnapshot-config b/draksnapshot-config
index ce76d20..14c7b3f 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -42,6 +42,8 @@ ugtk2::add_icon_path("/usr/share/draksnapshot/pixmaps/");
######### read config
+my $product_id = common::parse_LDAP_namespace_structure(cat_("$root/etc/product.id"));
+
my @ordered_intervals = qw(hourly daily weekly monthly);
my ($backup_list, $exclude_list) = map {
@@ -178,8 +180,8 @@ gtkadd($my_win->{window},
} @ordered_intervals
])),
0, gtknew('HButtonBox', layout => 'start', border_width => 5, spacing => 5, children_loose => [
- $button = gtknew('Install_Button', text => N("Advanced"),
- clicked => sub { $d_window->show }),
+ $button = gtknew($product_id->{version} =~ /200[6-8]/ ? 'Button' : 'Install_Button',
+ text => N("Advanced"), clicked => sub { $d_window->show }),
]),
]),
0, gtknew('HButtonBox', layout => 'end', border_width => 5, spacing => 5, children_loose => [