summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
authormisc <misc@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2010-08-16 23:19:55 +0000
committermisc <misc@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2010-08-16 23:19:55 +0000
commitdd8e20ac8f496ac6f4060b01efec76586cc68603 (patch)
tree73287d8ff99a38359e66cc1ecb7664560b4df89f /draksnapshot-config
parent458046b4e9012507d87438ccee350f3f035a6b80 (diff)
downloaddraksnapshot-dd8e20ac8f496ac6f4060b01efec76586cc68603.tar
draksnapshot-dd8e20ac8f496ac6f4060b01efec76586cc68603.tar.gz
draksnapshot-dd8e20ac8f496ac6f4060b01efec76586cc68603.tar.bz2
draksnapshot-dd8e20ac8f496ac6f4060b01efec76586cc68603.tar.xz
draksnapshot-dd8e20ac8f496ac6f4060b01efec76586cc68603.zip
- clean some code
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@270572 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-xdraksnapshot-config5
1 files changed, 2 insertions, 3 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index f5bf218..42b48c4 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -42,8 +42,6 @@ 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 %default_values = (
"hourly" => 6,
@@ -167,7 +165,8 @@ gtkadd($my_win->{window},
0, gtknew('HButtonBox', layout => 'start', border_width => 5, spacing => 5, children_loose => [
- $button = gtknew($product_id->{version} =~ /200[6-8]/ ? 'Button' : 'Install_Button',
+ # does not exist before 2009.0, if you need it, you can revert to Button type if needed ( CS4 )
+ $button = gtknew('Install_Button',
text => N("Advanced"), clicked => sub { $d_window->show }),
]),
]),