Hello community,

here is the log from the commit of package libgnome-games-support for 
openSUSE:Factory checked in at 2020-11-19 16:45:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgnome-games-support (Old)
 and      /work/SRC/openSUSE:Factory/.libgnome-games-support.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgnome-games-support"

Thu Nov 19 16:45:29 2020 rev:12 rq:847245 version:1.7.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/libgnome-games-support/libgnome-games-support.changes
    2020-04-23 18:31:53.732255082 +0200
+++ 
/work/SRC/openSUSE:Factory/.libgnome-games-support.new.5913/libgnome-games-support.changes
  2020-11-23 10:33:59.917592012 +0100
@@ -1,0 +2,6 @@
+Tue Sep  1 14:08:13 UTC 2020 - Dominique Leuenberger <[email protected]>
+
+- Update to version 1.7.1:
+  + Add API to set icon name.
+
+-------------------------------------------------------------------

Old:
----
  libgnome-games-support-1.6.1.tar.xz

New:
----
  libgnome-games-support-1.7.1.tar.xz

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

Other differences:
------------------
++++++ libgnome-games-support.spec ++++++
--- /var/tmp/diff_new_pack.v8Bi6r/_old  2020-11-23 10:34:00.305592437 +0100
+++ /var/tmp/diff_new_pack.v8Bi6r/_new  2020-11-23 10:34:00.309592441 +0100
@@ -19,13 +19,13 @@
 %define sover 3
 
 Name:           libgnome-games-support
-Version:        1.6.1
+Version:        1.7.1
 Release:        0
 Summary:        Internal support library for GNOME games
 License:        LGPL-3.0-or-later
 Group:          Development/Libraries/GNOME
 URL:            https://git.gnome.org/browse/libgnome-games-support/
-Source0:        
https://download.gnome.org/sources/libgnome-games-support/1.6/%{name}-%{version}.tar.xz
+Source0:        
https://download.gnome.org/sources/libgnome-games-support/1.7/%{name}-%{version}.tar.xz
 
 BuildRequires:  intltool >= 0.50.2
 BuildRequires:  meson

++++++ libgnome-games-support-1.6.1.tar.xz -> 
libgnome-games-support-1.7.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgnome-games-support-1.6.1/NEWS 
new/libgnome-games-support-1.7.1/NEWS
--- old/libgnome-games-support-1.6.1/NEWS       2020-03-26 20:55:00.623790300 
+0100
+++ new/libgnome-games-support-1.7.1/NEWS       2020-07-02 20:34:36.249295200 
+0200
@@ -1,3 +1,8 @@
+1.7.1 - July 2, 2020
+====================
+
+- Add API to set icon name (#18, Arnaud B.)
+
 1.6.1 - March 26, 2020
 ======================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libgnome-games-support-1.6.1/games/scores/context.vala 
new/libgnome-games-support-1.7.1/games/scores/context.vala
--- old/libgnome-games-support-1.6.1/games/scores/context.vala  2020-03-26 
20:55:00.624790200 +0100
+++ new/libgnome-games-support-1.7.1/games/scores/context.vala  2020-07-02 
20:34:36.250295200 +0200
@@ -37,6 +37,7 @@
     public Gtk.Window? game_window { get; construct; }
     public Style style { get; construct; }
     public Importer? importer { get; construct; }
+    public string icon_name { get; construct; }
 
     private Category? current_category = null;
 
@@ -73,7 +74,17 @@
                     CategoryRequestFunc category_request,
                     Style style)
     {
-        this.with_importer (app_name, category_type, game_window, 
category_request, style, null);
+        this.with_importer_and_icon_name (app_name, category_type, 
game_window, category_request, style, null, null);
+    }
+
+    public Context.with_icon_name (string app_name,
+                                   string category_type,
+                                   Gtk.Window? game_window,
+                                   CategoryRequestFunc category_request,
+                                   Style style,
+                                   string icon_name)
+    {
+        this.with_importer_and_icon_name (app_name, category_type, 
game_window, category_request, style, null, icon_name);
     }
 
     public Context.with_importer (string app_name,
@@ -83,11 +94,23 @@
                                   Style style,
                                   Importer? importer)
     {
+        this.with_importer_and_icon_name (app_name, category_type, 
game_window, category_request, style, importer, null);
+    }
+
+    public Context.with_importer_and_icon_name (string app_name,
+                                                string category_type,
+                                                Gtk.Window? game_window,
+                                                CategoryRequestFunc 
category_request,
+                                                Style style,
+                                                Importer? importer = null,
+                                                string? icon_name = null)
+    {
         Object (app_name: app_name,
                 category_type: category_type,
                 game_window: game_window,
                 style: style,
-                importer: importer);
+                importer: importer,
+                icon_name: icon_name ?? app_name);
 
         /* Note: the following functionality can be performed manually by
          * calling Context.load_scores, to ensure Context is usable even if
@@ -335,7 +358,7 @@
     internal void run_dialog_internal (Score? new_high_score)
         requires (game_window != null)
     {
-        var dialog = new Dialog (this, category_type, style, new_high_score, 
current_category, game_window, app_name);
+        var dialog = new Dialog (this, category_type, style, new_high_score, 
current_category, game_window, icon_name);
         dialog.run ();
         dialog.destroy ();
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libgnome-games-support-1.6.1/games/scores/dialog.vala 
new/libgnome-games-support-1.7.1/games/scores/dialog.vala
--- old/libgnome-games-support-1.6.1/games/scores/dialog.vala   2020-03-26 
20:55:00.625790000 +0100
+++ new/libgnome-games-support-1.7.1/games/scores/dialog.vala   2020-07-02 
20:34:36.250295200 +0200
@@ -36,7 +36,7 @@
     private Score? new_high_score;
     private Category? scores_active_category;
 
-    public Dialog (Context context, string category_type, Style style, Score? 
new_high_score, Category? current_cat, Gtk.Window window, string app_name)
+    public Dialog (Context context, string category_type, Style style, Score? 
new_high_score, Category? current_cat, Gtk.Window window, string icon_name)
     {
         Object (use_header_bar : 1);
 
@@ -73,7 +73,7 @@
             vbox.get_style_context ().add_class ("dim-label");
 
             var image = new Gtk.Image ();
-            image.icon_name = app_name + "-symbolic";
+            image.icon_name = icon_name + "-symbolic";
             image.pixel_size = 64;
             image.opacity = 0.2;
             vbox.add (image);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgnome-games-support-1.6.1/meson.build 
new/libgnome-games-support-1.7.1/meson.build
--- old/libgnome-games-support-1.6.1/meson.build        2020-03-26 
20:55:00.625790000 +0100
+++ new/libgnome-games-support-1.7.1/meson.build        2020-07-02 
20:34:36.250295200 +0200
@@ -1,6 +1,6 @@
 project(
     'libgnome-games-support', ['vala', 'c'],
-    version: '1.6.1',
+    version: '1.7.1',
     license: 'LGPLv3+',
     meson_version: '>= 0.50.0',
 )
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to