[Pkg-xfce-commits] r462 - goodies/xfce4-cpufreq-plugin/debian/patches

Stefan Ott cockroach-guest at costa.debian.org
Sun Jan 29 18:03:50 UTC 2006


Author: cockroach-guest
Date: 2006-01-29 18:03:49 +0000 (Sun, 29 Jan 2006)
New Revision: 462

Added:
   goodies/xfce4-cpufreq-plugin/debian/patches/03_progressbar-size.dpatch
Modified:
   goodies/xfce4-cpufreq-plugin/debian/patches/00list
Log:
Added progressbar size patch


Modified: goodies/xfce4-cpufreq-plugin/debian/patches/00list
===================================================================
--- goodies/xfce4-cpufreq-plugin/debian/patches/00list	2006-01-29 13:32:52 UTC (rev 461)
+++ goodies/xfce4-cpufreq-plugin/debian/patches/00list	2006-01-29 18:03:49 UTC (rev 462)
@@ -1,2 +1,3 @@
 01_warning-message.dpatch
 02_makefile.dpatch
+03_progressbar-size.dpatch

Added: goodies/xfce4-cpufreq-plugin/debian/patches/03_progressbar-size.dpatch
===================================================================
--- goodies/xfce4-cpufreq-plugin/debian/patches/03_progressbar-size.dpatch	2006-01-29 13:32:52 UTC (rev 461)
+++ goodies/xfce4-cpufreq-plugin/debian/patches/03_progressbar-size.dpatch	2006-01-29 18:03:49 UTC (rev 462)
@@ -0,0 +1,25 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_progressbar-size.dpatch by Stefan Ott <stefan at desire.ch>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Prevent the warning popups from showing over and over again
+ at DPATCH@
+--- xfce4-cpufreq-plugin-0.1-orig/cpufreq.c	2005-07-15 19:36:59.000000000 +0200
++++ xfce4-cpufreq-plugin-0.1/cpufreq.c	2006-01-29 18:40:35.000000000 +0100
+@@ -324,11 +324,13 @@
+ cpufreq_set_size (Control *ctrl, int size)
+ {
+ 	struct cpufreq_monitor *c = (struct cpufreq_monitor *)ctrl->data;
+-	
++
++	int icon = icon_size[size];
++
+ 	if (c->orientation == HORIZONTAL) {
+-		gtk_widget_set_size_request(c->pbar, 10, size);
++		gtk_widget_set_size_request(c->pbar, icon - 6, 6 + 2 * size);
+ 	} else if (c->orientation == VERTICAL) {
+-		gtk_widget_set_size_request(c->pbar, size, 10);
++		gtk_widget_set_size_request(c->pbar, 6 + 2 * size, icon - 4);
+ 	}
+ 	
+ 	gtk_widget_set_size_request(ctrl->base, -1, -1);


Property changes on: goodies/xfce4-cpufreq-plugin/debian/patches/03_progressbar-size.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Pkg-xfce-commits mailing list