Hello community,

here is the log from the commit of package libyui-gtk for openSUSE:Factory 
checked in at 2013-02-04 21:13:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libyui-gtk (Old)
 and      /work/SRC/openSUSE:Factory/.libyui-gtk.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libyui-gtk", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/libyui-gtk/libyui-gtk.changes    2012-11-20 
20:15:46.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libyui-gtk.new/libyui-gtk.changes       
2013-02-04 21:13:54.000000000 +0100
@@ -1,0 +2,11 @@
+Fri Jan 18 15:13:21 CET 2013 - anase...@linux.it
+- Added a basic theme management by using css style (style.css)
+
+-------------------------------------------------------------------
+Thu Dec 27 21:45:30 CET 2012 - anase...@linux.it
+
+- Fixed YGProgressBar setValue to refresh 
+- Added percentage to YGProgressBar (same behavior of ncurses and
+  qt implementation)
+
+-------------------------------------------------------------------

Old:
----
  libyui-gtk-2.42.1.tar.bz2

New:
----
  libyui-gtk-2.42.2.tar.bz2

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

Other differences:
------------------
++++++ libyui-gtk-doc.spec ++++++
--- /var/tmp/diff_new_pack.D3V3q6/_old  2013-02-04 21:13:54.000000000 +0100
+++ /var/tmp/diff_new_pack.D3V3q6/_new  2013-02-04 21:13:54.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package libyui-gtk (Version 2.42.1)
+# spec file for package libyui-gtk (Version 2.42.2)
 #
 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -16,7 +16,7 @@
 #
 
 Name:          libyui-gtk-doc
-Version:       2.42.1
+Version:       2.42.2
 Release:       0
 License:       LGPL-2.1 or LGPL-3.0
 Source:                libyui-gtk-%{version}.tar.bz2

++++++ libyui-gtk.spec ++++++
--- /var/tmp/diff_new_pack.D3V3q6/_old  2013-02-04 21:13:55.000000000 +0100
+++ /var/tmp/diff_new_pack.D3V3q6/_new  2013-02-04 21:13:55.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# spec file for package libyui-gtk (Version 2.42.1)
+# spec file for package libyui-gtk (Version 2.42.2)
 #
 # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
@@ -17,7 +17,7 @@
 # norootforbuild
 
 Name:       libyui-gtk
-Version:    2.42.1
+Version:    2.42.2
 Release:    0
 License:    LGPL-2.1 or LGPL-3.0
 Source:     libyui-gtk-%{version}.tar.bz2

++++++ libyui-gtk-2.42.1.tar.bz2 -> libyui-gtk-2.42.2.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-gtk-2.42.1/ChangeLog 
new/libyui-gtk-2.42.2/ChangeLog
--- old/libyui-gtk-2.42.1/ChangeLog     2012-11-13 12:13:04.000000000 +0100
+++ new/libyui-gtk-2.42.2/ChangeLog     2013-01-18 15:40:52.000000000 +0100
@@ -1,4 +1,15 @@
 -------------------------------------------------------------------
+Fri Jan 18 15:13:21 CET 2013 - anase...@linux.it
+- Added a basic theme management by using css style (style.css)
+
+-------------------------------------------------------------------
+Thu Dec 27 21:45:30 CET 2012 - anase...@linux.it
+
+- Fixed YGProgressBar setValue to refresh 
+- Added percentage to YGProgressBar (same behavior of ncurses and
+  qt implementation)
+
+-------------------------------------------------------------------
 Fri Nov  2 19:19:27 CET 2012 - anase...@linux.it
 
 - Used YApplication::applicationTitle() and 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-gtk-2.42.1/MAINTAINER 
new/libyui-gtk-2.42.2/MAINTAINER
--- old/libyui-gtk-2.42.1/MAINTAINER    2012-11-13 12:13:04.000000000 +0100
+++ new/libyui-gtk-2.42.2/MAINTAINER    2013-01-18 15:40:52.000000000 +0100
@@ -1,2 +1 @@
-Ricardo Cruz  <rpmc...@alunos.dcc.fc.up.pt>   \
-Michael Meeks <michael.me...@novell.com>
+Thomas Goettlicher <tgoettlic...@suse.de>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-gtk-2.42.1/VERSION.cmake 
new/libyui-gtk-2.42.2/VERSION.cmake
--- old/libyui-gtk-2.42.1/VERSION.cmake 2012-11-13 12:13:04.000000000 +0100
+++ new/libyui-gtk-2.42.2/VERSION.cmake 2013-01-18 15:40:52.000000000 +0100
@@ -1,6 +1,6 @@
 SET( VERSION_MAJOR "2" )
 SET( VERSION_MINOR "42" )
-SET( VERSION_PATCH "1" )
+SET( VERSION_PATCH "2" )
 SET( VERSION 
"${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}${VERSION_SHA1}" )
 
 ##### This is need for the libyui core, ONLY.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-gtk-2.42.1/src/YGProgressBar.cc 
new/libyui-gtk-2.42.2/src/YGProgressBar.cc
--- old/libyui-gtk-2.42.1/src/YGProgressBar.cc  2012-11-13 12:13:04.000000000 
+0100
+++ new/libyui-gtk-2.42.2/src/YGProgressBar.cc  2013-01-18 15:40:52.000000000 
+0100
@@ -56,11 +56,13 @@
                GtkProgressBar *bar = GTK_PROGRESS_BAR (getWidget());
                float fraction = CLAMP ((float) value / maxValue(), 0, 1);
                gtk_progress_bar_set_fraction (bar, fraction);
-/*
+
                char *text = g_strdup_printf ("%d %%", (int) (fraction*100));
                gtk_progress_bar_set_text (bar, text);
                g_free (text);
-*/
+               gtk_progress_bar_set_show_text(bar, true);
+
+               gtk_main_iteration_do(false);
        }
 
        virtual unsigned int getMinSize (YUIDimension dim)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libyui-gtk-2.42.1/src/YGUI.cc 
new/libyui-gtk-2.42.2/src/YGUI.cc
--- old/libyui-gtk-2.42.1/src/YGUI.cc   2012-11-13 12:13:04.000000000 +0100
+++ new/libyui-gtk-2.42.2/src/YGUI.cc   2013-01-18 15:40:52.000000000 +0100
@@ -147,6 +147,45 @@
        g_log_set_always_fatal (GLogLevelFlags 
(G_LOG_LEVEL_ERROR|G_LOG_LEVEL_CRITICAL|
                G_LOG_LEVEL_WARNING| 
G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_INFO|G_LOG_LEVEL_DEBUG));
 #endif
+    std::string themeSubDir = YSettings::getThemeDir();
+
+    char* st = getenv("Y2STYLE");
+    std::string style = st ? st : "";
+ 
+    if (style.size())
+    {
+      style = themeSubDir + style;
+    }
+    else
+    {
+      style = themeSubDir + "style.css";
+    }
+
+    yuiMilestone() << "Style \"" << style << "\"\n";
+
+    GtkCssProvider *provider = gtk_css_provider_new();
+    GFile * file = g_file_new_for_path(style.c_str());
+    if (g_file_query_exists(file, NULL))
+    {
+       GError *error = NULL;
+       if (!gtk_css_provider_load_from_file (provider, file, &error))
+       {
+         g_printerr ("%s\n", error->message);
+       }
+       else
+       {
+         GdkDisplay *display = gdk_display_get_default ();
+         GdkScreen *screen = gdk_display_get_default_screen (display);
+
+         gtk_style_context_add_provider_for_screen (screen,
+                                                    GTK_STYLE_PROVIDER 
(provider),
+                                                    
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);     
+       }
+    }
+    else
+       yuiMilestone() << "Style \"" << style << "\" not found. Ignoring 
style\n";
+    
+    g_object_unref (provider);
 
        GdkPixbuf *pixbuf = YGUtils::loadPixbuf (THEMEDIR 
"/icons/32x32/apps/yast.png");
        if (pixbuf) {  // default window icon

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to