Hello community,

here is the log from the commit of package xfce4-panel-plugin-timeout for 
openSUSE:Factory
checked in at Mon Sep 5 17:59:21 CEST 2011.



--------
--- xfce4-panel-plugin-timeout/xfce4-panel-plugin-timeout.changes       
2011-03-09 22:47:31.000000000 +0100
+++ xfce4-panel-plugin-timeout/xfce4-panel-plugin-timeout.changes       
2011-05-27 23:24:24.000000000 +0200
@@ -1,0 +2,13 @@
+Fri May 27 21:14:33 UTC 2011 - [email protected]
+
+- renamed xfce4-time-out-plugin-1.0.0-hidden_progress_bar.patch to
+  xfce4-panel-plugin-timeout-1.0.0-hidden_progress_bar.patch
+
+-------------------------------------------------------------------
+Wed May 25 12:16:59 UTC 2011 - [email protected]
+
+- fixed invalid progress bar update
+  xfce4-time-out-plugin-1.0.0-hidden_progress_bar.patch
+  https://bugzilla.xfce.org/show_bug.cgi?id=7660
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  xfce4-panel-plugin-timeout-1.0.0-hidden_progress_bar.patch

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

Other differences:
------------------
++++++ xfce4-panel-plugin-timeout.spec ++++++
--- /var/tmp/diff_new_pack.Q69mUG/_old  2011-09-05 17:58:03.000000000 +0200
+++ /var/tmp/diff_new_pack.Q69mUG/_new  2011-09-05 17:58:04.000000000 +0200
@@ -22,11 +22,13 @@
 Name:           xfce4-panel-plugin-timeout
 License:        GPLv2+
 Version:        1.0.0
-Release:        5
+Release:        6
 Summary:        Periodical break plugin for the Xfce panel
 Url:            
http://goodies.xfce.org/projects/panel-plugins/xfce4-time-out-plugin
 Group:          System/GUI/XFCE
 Source:         xfce4-time-out-plugin-1.0.0.tar.bz2
+# PATCH-FIX-UPSTREAM 
xfce4-panel-plugin-timeout-1.0.0-hidden_progress_bar.patch bxo#7660 
[email protected] -- Fixes invalid progress bar update
+Patch0:         xfce4-panel-plugin-timeout-1.0.0-hidden_progress_bar.patch
 BuildRequires:  intltool
 BuildRequires:  fdupes
 BuildRequires:  pkgconfig(libxfce4panel-1.0)
@@ -41,6 +43,7 @@
 
 %prep
 %setup -q -n %{plugin_name}-%{version}
+%patch0 -p1
 
 %build
 %configure --disable-static

++++++ xfce4-panel-plugin-timeout-1.0.0-hidden_progress_bar.patch ++++++
# Rationale:
#   Most of the time time_out_lock_countdown_update() calls
#   time_out_lock_screen_set_remaining() with arguments that are incompatible
#   with gtk_progress_bar (resulting fraction to be set on the progress bar
#   can range from infinity through zero to a number > 1), which in turn leads
#   to GTK errors on stderr every second.
#
# https://bugzilla.xfce.org/show_bug.cgi?id=7660
#
# Patch:
#   Check for occurrences of such conditions and as these imply that the lock
#   progress bar is hidden anyway, do not update it.
diff -Ndpru10 xfce4-time-out-plugin-1.0.0/panel-plugin/time-out-lock-screen.c 
xfce4-time-out-plugin-1.0.0.new/panel-plugin/time-out-lock-screen.c
--- xfce4-time-out-plugin-1.0.0/panel-plugin/time-out-lock-screen.c     
2010-12-06 17:34:50.000000000 +0100
+++ xfce4-time-out-plugin-1.0.0.new/panel-plugin/time-out-lock-screen.c 
2011-05-25 14:03:13.884840608 +0200
@@ -320,22 +320,25 @@ time_out_lock_screen_set_remaining (Time
   /* Get long string representation of the remaining time */
   time_string = time_out_countdown_seconds_to_string (seconds, 
lock_screen->display_seconds, lock_screen->display_hours, FALSE);
   
   /* Add markup */
   g_string_prepend (time_string, "<span size=\"x-large\">");
   g_string_append (time_string, "</span>");
   
   /* Update widgets */
   gtk_label_set_markup (GTK_LABEL (lock_screen->time_label), time_string->str);
 
-  gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (lock_screen->progress),
-                                 ((gdouble)seconds) / 
((gdouble)lock_screen->max_seconds));
+  if ((0 < lock_screen->max_seconds) && (0 <= seconds) && (seconds <= 
lock_screen->max_seconds))
+  {
+    gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (lock_screen->progress),
+                                   ((gdouble)seconds) / 
((gdouble)lock_screen->max_seconds));
+  }
 
   /* Free time string */
   g_string_free (time_string, TRUE);
 }
 
 
 
 void
 time_out_lock_screen_set_allow_postpone (TimeOutLockScreen *lock_screen,
                                          gboolean           allow_postpone)

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



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to