Skip to content

Commit

Permalink
- Use Gtk3 by default.
Browse files Browse the repository at this point in the history
This can be changed in the config file, by changing `gtk_version` from `3` to `2`, which will use Gtk2 instead.

See also: #42

- Version 0.90
  • Loading branch information
trizen committed Aug 22, 2021
1 parent 6901b02 commit 894ba46
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions obmenu-generator
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# Name: obmenu-generator
# License: GPLv3
# Created: 25 March 2011
# Latest edit: 10 August 2021
# Latest edit: 22 August 2021
# https://github.com/trizen/obmenu-generator

use 5.014;
Expand All @@ -35,7 +35,7 @@ use 5.014;
use Linux::DesktopFiles;

my $pkgname = 'obmenu-generator';
my $version = '0.89';
my $version = '0.90';

our ($CONFIG, $SCHEMA);
my $output_h = \*STDOUT;
Expand Down Expand Up @@ -114,8 +114,8 @@ my $config_help = <<"HELP";
],
|| ICON SETTINGS
| use_gtk3 : Use the Gtk3 library for resolving the icon paths. (default: 0)
| gtk_rc_filename : Absolute path to the GTK configuration file.
| gtk_version : The version of the Gtk library used for resolving the icon paths. (default: 3)
| gtk_rc_filename : Absolute path to the Gtk configuration file.
| missing_icon : Use this icon for missing icons (default: gtk-missing-image)
| icon_size : Preferred size for icons. (default: 48)
| generic_fallback : Try to shorten icon name at '-' characters before looking at inherited themes. (default: 0)
Expand Down Expand Up @@ -249,13 +249,13 @@ my %CONFIG = (
terminal => 'xterm',
editor => 'geany',
missing_icon => 'gtk-missing-image',
gtk_rc_filename => "$home_dir/.gtkrc-2.0",
gtk_rc_filename => "$home_dir/.config/gtk-3.0/settings.ini",

icon_size => 48,
force_icon_size => 0,
generic_fallback => 0,
locale_support => 1,
use_gtk3 => 0,
gtk_version => 3,

VERSION => $version,
);
Expand Down Expand Up @@ -380,7 +380,7 @@ sub get_icon_path {

require Digest::MD5;

$CONFIG{use_gtk3}
($CONFIG{gtk_version} == 3)
? do {
eval "use Gtk3";
'Gtk3'->init;
Expand Down

0 comments on commit 894ba46

Please sign in to comment.