aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/giftoxic/files
diff options
context:
space:
mode:
authorcvs2svn <cvs2svn@FreeBSD.org>2004-05-15 15:49:17 +0000
committercvs2svn <cvs2svn@FreeBSD.org>2004-05-15 15:49:17 +0000
commit6f316ce2e89f972a4f22e1b97e1dda5e9d58cefa (patch)
treefb8d61358190cc429db453d54fb9920ccfde716f /net-p2p/giftoxic/files
parentea16706c62b542adc8f3b887256bf215bf914db6 (diff)
Diffstat (limited to 'net-p2p/giftoxic/files')
-rw-r--r--net-p2p/giftoxic/files/patch-src-gtkcellrendererprogress.c40
-rw-r--r--net-p2p/giftoxic/files/patch-src-utils.c22
2 files changed, 0 insertions, 62 deletions
diff --git a/net-p2p/giftoxic/files/patch-src-gtkcellrendererprogress.c b/net-p2p/giftoxic/files/patch-src-gtkcellrendererprogress.c
deleted file mode 100644
index e413f7045d36..000000000000
--- a/net-p2p/giftoxic/files/patch-src-gtkcellrendererprogress.c
+++ /dev/null
@@ -1,40 +0,0 @@
---- src/gtkcellrendererprogress.c.orig Thu May 22 06:23:39 2003
-+++ src/gtkcellrendererprogress.c Sun Dec 28 14:28:27 2003
-@@ -370,7 +370,13 @@
- */
- GdkGC *gc;
- gint draw_width;
--
-+
-+ PangoFontDescription *font;
-+
-+ PangoContext *context;
-+ PangoLayout *layout;
-+ gchar *text;
-+ int w,h;
-
- if ((flags & GTK_CELL_RENDERER_SELECTED) == GTK_CELL_RENDERER_SELECTED)
- {
-@@ -425,18 +431,17 @@
-
-
-
-- PangoFontDescription *font = pango_font_description_from_string ("8");
-+ font = pango_font_description_from_string ("8");
-
-- PangoContext *context = gtk_widget_create_pango_context(widget);
-- PangoLayout *layout = pango_layout_new(context);
-+ context = gtk_widget_create_pango_context(widget);
-+ layout = pango_layout_new(context);
-
- pango_layout_set_font_description (layout, font);
-- gchar *text = g_strdup_printf("%.1f%%",cellprogress->priv->value);
-+ text = g_strdup_printf("%.1f%%",cellprogress->priv->value);
- pango_layout_set_text(layout, text, -1);
-
- gdk_gc_set_rgb_fg_color (gc, &cellprogress->priv->text_color);
-
-- int w,h;
- pango_layout_get_pixel_size(layout, &w, &h);
- w = (cell_area->width - w)/2;
- h = (cell_area->height - h)/2;
diff --git a/net-p2p/giftoxic/files/patch-src-utils.c b/net-p2p/giftoxic/files/patch-src-utils.c
deleted file mode 100644
index 13fe72ad34f4..000000000000
--- a/net-p2p/giftoxic/files/patch-src-utils.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- src/utils.c.orig Tue May 27 21:37:18 2003
-+++ src/utils.c Sun Dec 28 14:25:22 2003
-@@ -366,6 +366,8 @@
-
- gulong divisor = 1;
- gint type = 0;
-+ gulong mod;
-+ gulong nice;
-
- if (size >= 1000000){
- divisor = 1000000;
-@@ -375,8 +377,8 @@
- type = 1;
- }
-
-- gulong mod = size % divisor;
-- gulong nice = size / divisor;
-+ mod = size % divisor;
-+ nice = size / divisor;
- strcpy(format, (mod == 0)?"%.0f":"%.2f");
- strcat(format, (nice == 1 && mod == 0?gettext(qtys[type][0]):gettext(qtys[type][1])));
- return g_strdup_printf(format, (gfloat) size / divisor);