Hello community,

here is the log from the commit of package lookbook for openSUSE:Factory 
checked in at 2018-11-06 14:39:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lookbook (Old)
 and      /work/SRC/openSUSE:Factory/.lookbook.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lookbook"

Tue Nov  6 14:39:43 2018 rev:2 rq:646458 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lookbook/lookbook.changes        2018-09-20 
11:42:01.536836610 +0200
+++ /work/SRC/openSUSE:Factory/.lookbook.new/lookbook.changes   2018-11-06 
14:40:21.576508020 +0100
@@ -1,0 +2,11 @@
+Mon Oct 29 19:36:34 UTC 2018 - Alexei Podvalsky <[email protected]>
+
+- Update to 1.1.0:
+  * Add some symbolic view icons and fall back when color icons 
+    aren't available
+  * Use ModeSwitch from Granite
+  * Add credit cards icons (#39)
+  * Focus search by default (#41)
+  * Add "reload" to view-refresh description (#38)
+
+-------------------------------------------------------------------

Old:
----
  lookbook-1.0.0.tar.gz

New:
----
  lookbook-1.1.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lookbook.spec ++++++
--- /var/tmp/diff_new_pack.ApaOsP/_old  2018-11-06 14:40:23.032505821 +0100
+++ /var/tmp/diff_new_pack.ApaOsP/_new  2018-11-06 14:40:23.040505808 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           lookbook
-Version:        1.0.0
+Version:        1.1.0
 Release:        0
 Summary:        Navigator for finding and browsing system icons
 License:        GPL-3.0-or-later

++++++ lookbook-1.0.0.tar.gz -> lookbook-1.1.0.tar.gz ++++++
++++ 1862 lines of diff (skipped)
++++    retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/.travis.yml new/lookbook-1.1.0/.travis.yml
--- old/lookbook-1.0.0/.travis.yml      2018-07-04 01:52:35.000000000 +0200
+++ new/lookbook-1.1.0/.travis.yml      2018-10-25 21:10:21.000000000 +0200
@@ -15,23 +15,14 @@
     sources:
       - ubuntu-toolchain-r-test
     packages:
-      - libstdc++-4.9-dev
+      - libstdc++-5-dev
 
 cache:
   directories:
     - /tmp/liftoff
 
-matrix:
-  include:
-    - env: DIST=juno
-
-before_install:
-  - docker pull ubuntu:18.04
-
 install:
   - npm install @elementaryos/houston
 
 script:
   - houston ci
-    --distribution $DIST
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/data/com.github.danrabbit.lookbook.appdata.xml.in 
new/lookbook-1.1.0/data/com.github.danrabbit.lookbook.appdata.xml.in
--- old/lookbook-1.0.0/data/com.github.danrabbit.lookbook.appdata.xml.in        
2018-07-04 01:52:35.000000000 +0200
+++ new/lookbook-1.1.0/data/com.github.danrabbit.lookbook.appdata.xml.in        
2018-10-25 21:10:21.000000000 +0200
@@ -13,6 +13,11 @@
     <binary>com.github.danrabbit.lookbook</binary>
   </provides>
   <releases>
+    <release version="1.1.0" date="2018-10-25">
+      <description>
+        <p>Better support for symbolic-only icons and under the hood 
improvements!</p>
+      </description>
+    </release>
     <release version="1.0.0" date="2018-7-3">
       <description>
         <p>I'm a new soul</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/meson.build new/lookbook-1.1.0/meson.build
--- old/lookbook-1.0.0/meson.build      2018-07-04 01:52:35.000000000 +0200
+++ new/lookbook-1.1.0/meson.build      2018-10-25 21:10:21.000000000 +0200
@@ -19,7 +19,6 @@
     'src/IconView.vala',
     'src/MainWindow.vala',
     'src/Widgets/IconListRow.vala',
-    'src/Widgets/ModeSwitch.vala',
     'src/Widgets/SidebarRow.vala',
     dependencies: [
         dependency('glib-2.0'),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/src/CategoryView.vala 
new/lookbook-1.1.0/src/CategoryView.vala
--- old/lookbook-1.0.0/src/CategoryView.vala    2018-07-04 01:52:35.000000000 
+0200
+++ new/lookbook-1.1.0/src/CategoryView.vala    2018-10-25 21:10:21.000000000 
+0200
@@ -625,13 +625,38 @@
             category = ACTIONS
         },
         Icon () {
+            name = "tools-timer",
+            description = _("Set or adjust a timer"),
+            category = ACTIONS
+        },
+        Icon () {
+            name = "view-column",
+            description = _("Display the current view as columns"),
+            category = ACTIONS
+        },
+        Icon () {
+            name = "view-continuous",
+            description = _("display the current view in a continously 
scrolling list"),
+            category = ACTIONS
+        },
+        Icon () {
+            name = "view-dual",
+            description = _("display the current view as a split, dual view"),
+            category = ACTIONS
+        },
+        Icon () {
             name = "view-fullscreen",
             description = _("View fullscreen"),
             category = ACTIONS
         },
         Icon () {
+            name = "view-grid",
+            description = _("Display the current view as a grid of images or 
icons"),
+            category = ACTIONS
+        },
+        Icon () {
             name = "view-refresh",
-            description = _("Refresh the current view"),
+            description = _("Refresh or reload the current view"),
             category = ACTIONS
         },
         Icon () {
@@ -640,6 +665,26 @@
             category = ACTIONS
         },
         Icon () {
+            name = "view-more",
+            description = _("View more information about the given context in 
a popover or menu"),
+            category = ACTIONS
+        },
+        Icon () {
+            name = "view-more-horizontal",
+            description = _("View more information about the given context in 
a new view or window"),
+            category = ACTIONS
+        },
+        Icon () {
+            name = "view-paged",
+            description = _("Display the current view as a collection of 
pages"),
+            category = ACTIONS
+        },
+        Icon () {
+            name = "view-pin",
+            description = _("Pin the current view so that it does not 
automatically hide"),
+            category = ACTIONS
+        },
+        Icon () {
             name = "view-sort-ascending",
             description = _("Sort items in an ascending order, such as in a 
list"),
             category = ACTIONS
@@ -771,11 +816,6 @@
             category = APPS
         },
         Icon () {
-            name = "preferences-desktop",
-            description = _("System settings"),
-            category = APPS
-        },
-        Icon () {
             name = "system-file-manager",
             description = _("Files"),
             category = APPS
@@ -1521,6 +1561,46 @@
             category = MIMES
         },
         Icon () {
+            name = "payment-card",
+            description = _("Credit or debit card payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-amex",
+            description = _("American Express branded credit or debit card 
payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-diners-club",
+            description = _("Diner's Club branded credit or debit card 
payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-discover",
+            description = _("Discover branded credit or debit card payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-jcb",
+            description = _("Japan Credit Bureau branded credit or debit card 
payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-mastercard",
+            description = _("Mastercard branded credit or debit card 
payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-unionpay",
+            description = _("China UnionPay branded credit or debit card 
payments"),
+            category = MIMES
+        },
+        Icon () {
+            name = "payment-card-visa",
+            description = _("Visa branded credit or debit card payments"),
+            category = MIMES
+        },
+        Icon () {
             name = "text-css",
             description = _("CSS text file types"),
             category = MIMES
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/src/IconView.vala new/lookbook-1.1.0/src/IconView.vala
--- old/lookbook-1.0.0/src/IconView.vala        2018-07-04 01:52:35.000000000 
+0200
+++ new/lookbook-1.1.0/src/IconView.vala        2018-10-25 21:10:21.000000000 
+0200
@@ -84,13 +84,29 @@
         string [] pixels = {"16", "24", "32", "48", "64", "128"};
 
         notify["icon-name"].connect (() => {
-            title = icon_name;
+            var is_symbolic = icon_name.has_suffix ("-symbolic");
+            string color_icon_name;
+
+            if (is_symbolic) {
+                color_icon_name = icon_name.replace ("-symbolic", "");
+            } else {
+                color_icon_name = icon_name;
+            }
+
+            var symbolic_icon_name = color_icon_name + "-symbolic";
+            var has_color = icon_theme.has_icon (color_icon_name);
+
+            if (!is_symbolic && !has_color) {
+                icon_name = symbolic_icon_name;
+            }
+
+            title = color_icon_name;
             source_buffer.text = "var icon = new Gtk.Image ();\nicon.gicon = 
new ThemedIcon (\"%s\");\nicon.pixel_size = \"24\";".printf (icon_name);
 
             int i = 0;
 
-            var has_color = icon_theme.has_icon (icon_name);
-            var has_symbolic = icon_theme.has_icon (icon_name + "-symbolic");
+
+            var has_symbolic = icon_theme.has_icon (symbolic_icon_name);
 
             foreach (var child in color_row.get_children ()) {
                 child.destroy ();
@@ -103,7 +119,7 @@
             foreach (string pixel_size in pixels) {
                 if (has_color) {
                     var color_icon = new Gtk.Image ();
-                    color_icon.gicon = new ThemedIcon (icon_name);
+                    color_icon.gicon = new ThemedIcon (color_icon_name);
                     color_icon.icon_name = icon_name;
                     color_icon.pixel_size = int.parse (pixel_size);
                     color_icon.use_fallback = true;
@@ -118,7 +134,7 @@
 
                 if (has_symbolic) {
                     var symbolic_icon = new Gtk.Image ();
-                    symbolic_icon.gicon = new ThemedIcon (icon_name + 
"-symbolic");
+                    symbolic_icon.gicon = new ThemedIcon (symbolic_icon_name);
                     symbolic_icon.pixel_size = int.parse (pixel_size);
                     symbolic_icon.valign = Gtk.Align.END;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/src/MainWindow.vala new/lookbook-1.1.0/src/MainWindow.vala
--- old/lookbook-1.0.0/src/MainWindow.vala      2018-07-04 01:52:35.000000000 
+0200
+++ new/lookbook-1.1.0/src/MainWindow.vala      2018-10-25 21:10:21.000000000 
+0200
@@ -37,7 +37,7 @@
 
         var gtk_settings = Gtk.Settings.get_default ();
 
-        var mode_switch = new ModeSwitch ("display-brightness-symbolic", 
"weather-clear-night-symbolic");
+        var mode_switch = new Granite.ModeSwitch.from_icon_name 
("display-brightness-symbolic", "weather-clear-night-symbolic");
         mode_switch.primary_icon_tooltip_text = _("Light background");
         mode_switch.secondary_icon_tooltip_text = _("Dark background");
         mode_switch.valign = Gtk.Align.CENTER;
@@ -80,6 +80,8 @@
         categories_sidebar.row_selected.connect (() => {
             ((Gtk.ListBox)category_view.listbox).invalidate_filter ();
         });
+
+        search_entry.grab_focus ();
     }
 
     [CCode (instance_pos = -1)]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/src/Widgets/IconListRow.vala 
new/lookbook-1.1.0/src/Widgets/IconListRow.vala
--- old/lookbook-1.0.0/src/Widgets/IconListRow.vala     2018-07-04 
01:52:35.000000000 +0200
+++ new/lookbook-1.1.0/src/Widgets/IconListRow.vala     2018-10-25 
21:10:21.000000000 +0200
@@ -31,8 +31,16 @@
     }
 
     construct {
-        var icon = new Gtk.Image.from_icon_name (icon_name, 
Gtk.IconSize.SMALL_TOOLBAR);
-        icon.pixel_size = 24;
+        var icon = new Gtk.Image ();
+
+        if (Gtk.IconTheme.get_default ().has_icon (icon_name)) {
+            icon.icon_name = icon_name;
+            icon.pixel_size = 24;
+        } else {
+            icon.icon_name = icon_name + "-symbolic";
+            icon.pixel_size = 16;
+            icon.set_size_request (24, 24);
+        }
 
         var label = new Gtk.Label (icon_name);
         label.ellipsize = Pango.EllipsizeMode.MIDDLE;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/lookbook-1.0.0/src/Widgets/ModeSwitch.vala 
new/lookbook-1.1.0/src/Widgets/ModeSwitch.vala
--- old/lookbook-1.0.0/src/Widgets/ModeSwitch.vala      2018-07-04 
01:52:35.000000000 +0200
+++ new/lookbook-1.1.0/src/Widgets/ModeSwitch.vala      1970-01-01 
01:00:00.000000000 +0100
@@ -1,127 +0,0 @@
-/*
-* Copyright (c) 2018 elementary LLC. (https://elementary.io)
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public
-* License as published by the Free Software Foundation; either
-* version 2 of the License, or (at your option) any later version.
-*
-* This program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-* General Public License for more details.
-*
-* You should have received a copy of the GNU General Public
-* License along with this program; if not, write to the
-* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-* Boston, MA 02110-1301 USA
-*/
-
-/**
- * ModeSwitch is a selection control for choosing between two options that can 
be described with an icon.
- *
- * ''Example''<<BR>>
- * {{{
- *   var gtk_settings = Gtk.Settings.get_default ();
- *
- *   var mode_switch = new ModeSwitch ("display-brightness-symbolic", 
"weather-clear-night-symbolic");
- *   mode_switch.primary_icon_tooltip_text = _("Light background");
- *   mode_switch.secondary_icon_tooltip_text = _("Dark background");
- *   mode_switch.bind_property ("active", gtk_settings, 
"gtk_application_prefer_dark_theme");
- * }}}
- */
-public class ModeSwitch : Gtk.Grid {
-    /**
-     * Whether the {@link Gtk.Switch} widget is pointing to the secondary icon 
or not.
-     */
-    public bool active { get; set; }
-
-    /**
-     * The icon name to use for the primary icon for the switch.
-     */
-    public string primary_icon_name { get; construct set; }
-
-    /**
-     * The contents of the tooltip on the primary icon.
-     */
-    public string primary_icon_tooltip_text { get; set; }
-
-    /**
-     * The icon name to use for the secondary icon for the switch.
-     */
-    public string secondary_icon_name { get; construct set; }
-
-    /**
-     * The contents of the tooltip on the secondary icon.
-     */
-    public string secondary_icon_tooltip_text { get; set; }
-
-    /**
-     * Constructs a new {@link Granite.ModeSwitch}.
-     *
-     * @param primary_icon_name The icon name to use for the primary icon for 
the switch.
-     * @param secondary_icon_name The icon name to use for the secondary icon 
for the switch.
-     */
-    public ModeSwitch (string primary_icon_name, string secondary_icon_name) {
-        Object (
-            primary_icon_name: primary_icon_name,
-            secondary_icon_name: secondary_icon_name
-        );
-    }
-
-    construct {
-        var primary_icon = new Gtk.Image ();
-        primary_icon.pixel_size = 16;
-
-        var primary_icon_box = new Gtk.EventBox ();
-        primary_icon_box.add_events (Gdk.EventMask.BUTTON_RELEASE_MASK);
-        primary_icon_box.add (primary_icon);
-
-        var mode_switch = new Gtk.Switch ();
-        mode_switch.valign = Gtk.Align.CENTER;
-        mode_switch.get_style_context ().add_class ("mode-switch");
-
-        var secondary_icon = new Gtk.Image ();
-        secondary_icon.pixel_size = 16;
-
-        var secondary_icon_box = new Gtk.EventBox ();
-        secondary_icon_box.add_events (Gdk.EventMask.BUTTON_RELEASE_MASK);
-        secondary_icon_box.add (secondary_icon);
-
-        column_spacing = 6;
-        add (primary_icon_box);
-        add (mode_switch);
-        add (secondary_icon_box);
-
-        bind_property ("primary-icon-name", primary_icon, "icon-name", 
GLib.BindingFlags.SYNC_CREATE);
-        bind_property ("primary-icon-tooltip-text", primary_icon, 
"tooltip-text");
-        bind_property ("secondary-icon-name", secondary_icon, "icon-name", 
GLib.BindingFlags.SYNC_CREATE);
-        bind_property ("secondary-icon-tooltip-text", secondary_icon, 
"tooltip-text");
-
-        this.notify["active"].connect (() => {
-            if (Gtk.StateFlags.DIR_RTL in get_state_flags ()) {
-                mode_switch.active = !active;
-            } else {
-                mode_switch.active = active;
-            }
-        });
-
-        mode_switch.notify["active"].connect (() => {
-            if (Gtk.StateFlags.DIR_RTL in get_state_flags ()) {
-                active = !mode_switch.active;
-            } else {
-                active = mode_switch.active;
-            }
-        });
-
-        primary_icon_box.button_release_event.connect (() => {
-            active = false;
-            return Gdk.EVENT_STOP;
-        });
-
-        secondary_icon_box.button_release_event.connect (() => {
-            active = true;
-            return Gdk.EVENT_STOP;
-        });
-    }
-}


Reply via email to