Hello community, here is the log from the commit of package mate-tweak for openSUSE:Factory checked in at 2016-07-14 09:50:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mate-tweak (Old) and /work/SRC/openSUSE:Factory/.mate-tweak.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mate-tweak" Changes: -------- --- /work/SRC/openSUSE:Factory/mate-tweak/mate-tweak.changes 2016-07-09 09:23:40.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.mate-tweak.new/mate-tweak.changes 2016-07-14 09:50:33.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Jul 13 15:07:34 UTC 2016 - sor.ale...@meowr.ru + +- Update to version 16.10.4: + * Add support for MATE HUD. + +------------------------------------------------------------------- Old: ---- mate-tweak-16.10.3.tar.gz New: ---- mate-tweak-16.10.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mate-tweak.spec ++++++ --- /var/tmp/diff_new_pack.HQXqTA/_old 2016-07-14 09:50:34.000000000 +0200 +++ /var/tmp/diff_new_pack.HQXqTA/_new 2016-07-14 09:50:34.000000000 +0200 @@ -17,9 +17,9 @@ %define _name mate_tweak -%define _rev 86e381c3fe54 +%define _rev a80951f0ac1d Name: mate-tweak -Version: 16.10.3 +Version: 16.10.4 Release: 0 Summary: MATE desktop tweak tool License: GPL-2.0+ @@ -38,6 +38,7 @@ BuildRequires: python3-distutils-extra BuildRequires: python3-gobject BuildRequires: python3-psutil +BuildRequires: python3-setproctitle BuildRequires: python3-setuptools BuildRequires: update-desktop-files Requires: Mesa-demo-x @@ -50,6 +51,7 @@ Requires: xdg-utils Recommends: %{name}-lang Recommends: mate-applet-indicator +Recommends: mate-hud BuildArch: noarch %if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200 Requires: python3-gobject-Gdk ++++++ mate-tweak-16.10.3.tar.gz -> mate-tweak-16.10.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ubuntu-mate-mate-tweak-86e381c3fe54/data/mate-tweak.ui new/ubuntu-mate-mate-tweak-a80951f0ac1d/data/mate-tweak.ui --- old/ubuntu-mate-mate-tweak-86e381c3fe54/data/mate-tweak.ui 2016-07-04 14:49:34.000000000 +0200 +++ new/ubuntu-mate-mate-tweak-a80951f0ac1d/data/mate-tweak.ui 2016-07-13 00:13:54.000000000 +0200 @@ -1091,6 +1091,23 @@ </packing> </child> <child> + <object class="GtkCheckButton" id="checkbutton_hud"> + <property name="label" translatable="yes">Enable HUD</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="halign">start</property> + <property name="resize_mode">queue</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">3</property> + </packing> + </child> + <child> <object class="GtkCheckButton" id="checkbutton_pulldown_terminal"> <property name="label" translatable="yes">Enable pull-down terminal</property> <property name="visible">True</property> @@ -1102,7 +1119,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">3</property> + <property name="position">4</property> </packing> </child> <child> @@ -1117,7 +1134,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">4</property> + <property name="position">5</property> </packing> </child> <child> @@ -1136,7 +1153,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">5</property> + <property name="position">6</property> </packing> </child> <child> @@ -1157,7 +1174,7 @@ <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">6</property> + <property name="position">7</property> </packing> </child> </object> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ubuntu-mate-mate-tweak-86e381c3fe54/mate-tweak new/ubuntu-mate-mate-tweak-a80951f0ac1d/mate-tweak --- old/ubuntu-mate-mate-tweak-86e381c3fe54/mate-tweak 2016-07-04 14:49:34.000000000 +0200 +++ new/ubuntu-mate-mate-tweak-a80951f0ac1d/mate-tweak 2016-07-13 00:13:54.000000000 +0200 @@ -58,7 +58,7 @@ # Workaround introspection bug, gnome bug 622084 signal.signal(signal.SIGINT, signal.SIG_DFL) -__VERSION__ = '16.10.3' +__VERSION__ = '16.10.4' __SYNAPSE__ = """[Desktop Entry] Name=Synapse @@ -461,6 +461,16 @@ if os.path.exists(os.path.join(config_dir, 'autostart/') + self.dock + '.desktop'): os.remove(os.path.join(config_dir, 'autostart/') + self.dock + '.desktop') + def enable_hud(self): + self.set_bool('org.mate.hud', None, 'enabled', True) + subprocess.Popen(['/usr/lib/mate-hud/mate-hud'], stdout=DEVNULL, stderr=DEVNULL) + self.hud_enabled = True + + def disable_hud(self): + self.set_bool('org.mate.hud', None, 'enabled', False) + self.kill_process('mate-hud') + self.hud_enabled = False + def enable_dock(self): self.set_string('org.mate.session.required-components', None, 'dock', self.dock) self.remove_dock_autostart() @@ -562,9 +572,9 @@ self.kill_process('indicator-application-service') subprocess.Popen(['mate-volume-control-applet'], stdout=DEVNULL, stderr=DEVNULL) + config_dir = GLib.get_user_config_dir() # Create mate-volume-control-applet autostart. - if not os.path.exists('/etc/xdg/autostart/mate-volume-control-applet.desktop'): - config_dir = GLib.get_user_config_dir() + if not os.path.exists('/etc/xdg/autostart/mate-volume-control-applet.desktop'): self.mkdir_p(os.path.join(config_dir, 'autostart/')) shutil.copy2('/usr/share/mate-tweak/mate-volume-control-applet.desktop', os.path.join(config_dir, 'autostart/')) @@ -793,6 +803,12 @@ else: self.disable_pulldown_terminal() + def toggle_hud(self, checkbutton): + if checkbutton.get_active(): + self.enable_hud() + else: + self.disable_hud() + def panel_layout_exists(self, panel_layout): return os.path.exists('/usr/share/mate-panel/layouts/' + panel_layout + '.layout') @@ -947,6 +963,15 @@ else: self.pulldown_terminal_enabled = False + def check_hud_features(self): + if os.path.exists('/usr/lib/mate-hud/mate-hud') and \ + os.path.exists('/usr/lib/mate-hud/mate-hud-service'): + self.hud_available = True + self.hud_enabled = self.get_bool('org.mate.hud', None, 'enabled') + else: + self.hud_available = False + self.hud_enabled = False + def check_panel_features(self): # Determine what panel features are available self.gnome_menu_available = False @@ -1108,6 +1133,7 @@ self.check_dock_features() self.check_launcher_features() self.check_pulldown_terminal_features() + self.check_hud_features() self.check_panel_features() self.check_wm_features() self.previous_wm = self.current_wm @@ -1209,6 +1235,7 @@ self.builder.get_object("checkbutton_advanced_menu").set_label(_("Enable advanced menu")) self.builder.get_object("checkbutton_keyboard_led").set_label(_("Enable keyboard LED")) self.builder.get_object("checkbutton_launcher").set_label(_("Enable launcher")) + self.builder.get_object("checkbutton_hud").set_label(_("Enable HUD")) self.builder.get_object("checkbutton_pulldown_terminal").set_label(_("Enable pull-down terminal")) self.builder.get_object("checkbutton_show_applications").set_label(_("Show Applications")) @@ -1298,6 +1325,12 @@ if not self.pulldown_terminal: self.builder.get_object('checkbutton_pulldown_terminal').props.sensitive = False + # HUD + self.builder.get_object("checkbutton_hud").connect("toggled", self.toggle_hud) + self.builder.get_object("checkbutton_hud").set_active(self.hud_enabled) + if not self.hud_available: + self.builder.get_object('checkbutton_hud').props.sensitive = False + # Panel Menu features self.init_checkbox("org.mate.panel.menubar", "show-applications", "checkbutton_show_applications") self.init_checkbox("org.mate.panel.menubar", "show-places", "checkbutton_show_places")