diff options
author | Don Seiler <rizzo@gentoo.org> | 2004-08-28 18:43:24 +0000 |
---|---|---|
committer | Don Seiler <rizzo@gentoo.org> | 2004-08-28 18:43:24 +0000 |
commit | ad8e61a480aa244415597d42aa0f5219766c613e (patch) | |
tree | bb433c04003533220f47fbad108c36b5bbe8368c /net-im/gaim | |
parent | Added to ~ppc (Manifest recommit) (diff) | |
download | gentoo-2-ad8e61a480aa244415597d42aa0f5219766c613e.tar.gz gentoo-2-ad8e61a480aa244415597d42aa0f5219766c613e.tar.bz2 gentoo-2-ad8e61a480aa244415597d42aa0f5219766c613e.zip |
Adding patch that fixes things for gtk+ >= 2.5
Diffstat (limited to 'net-im/gaim')
-rw-r--r-- | net-im/gaim/ChangeLog | 6 | ||||
-rw-r--r-- | net-im/gaim/Manifest | 9 | ||||
-rw-r--r-- | net-im/gaim/files/gaim-0.83cvs-gtkcellrendererprogress.diff | 319 | ||||
-rw-r--r-- | net-im/gaim/gaim-0.82.1.ebuild | 4 |
4 files changed, 333 insertions, 5 deletions
diff --git a/net-im/gaim/ChangeLog b/net-im/gaim/ChangeLog index 2a59db67e58d..0e59650cf200 100644 --- a/net-im/gaim/ChangeLog +++ b/net-im/gaim/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-im/gaim # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/gaim/ChangeLog,v 1.235 2004/08/27 14:12:20 rizzo Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/gaim/ChangeLog,v 1.236 2004/08/28 18:43:24 rizzo Exp $ + + 28 Aug 2004; Don Seiler <rizzo@gentoo.org> + +files/gaim-0.83cvs-gtkcellrendererprogress.diff, gaim-0.82.1.ebuild: + Adding patch that fixes things for gtk+ >= 2.5 *gaim-0.82.1 (27 Aug 2004) diff --git a/net-im/gaim/Manifest b/net-im/gaim/Manifest index 82ea49bce76a..564366b940fd 100644 --- a/net-im/gaim/Manifest +++ b/net-im/gaim/Manifest @@ -1,9 +1,12 @@ MD5 96e7c603e018f0f5f05f0550c47fdc49 ChangeLog 37661 MD5 85e0911b1cf51d0054c342d93de141d4 gaim-0.81-r5.ebuild 3477 +MD5 69cd57d48898d4130b7aee68f40d1297 gaim-0.82.1-r1.ebuild 3427 MD5 19b3cafbbe380403d46cccc45a984b80 metadata.xml 481 MD5 449ac19994fc9a8c8f26ff8bdba1a1e9 gaim-0.82.1.ebuild 3352 -MD5 ed679fa262748c5626af4d9dcfd4b278 files/digest-gaim-0.81-r5 63 +MD5 c8c73743c47ef3956b6b499fa0d91347 files/digest-gaim-0.82.1 65 +MD5 c8c73743c47ef3956b6b499fa0d91347 files/digest-gaim-0.82.1-r1 65 MD5 afc682711efed5d09a9229bd06a7a13b files/gaim-0.76-xinput.patch 644 -MD5 9f2fa9ae8de6d285902cb2b46389c681 files/gaim-0.81-security2.diff 10297 MD5 22aae7173f7cbf5d93d1db9907740064 files/syslog_fd_leak.diff 8423 -MD5 c8c73743c47ef3956b6b499fa0d91347 files/digest-gaim-0.82.1 65 +MD5 8126122fdccc9c046ba5c5a8e151980b files/gaim-0.83cvs-gtkcellrendererprogress.diff 12886 +MD5 9f2fa9ae8de6d285902cb2b46389c681 files/gaim-0.81-security2.diff 10297 +MD5 ed679fa262748c5626af4d9dcfd4b278 files/digest-gaim-0.81-r5 63 diff --git a/net-im/gaim/files/gaim-0.83cvs-gtkcellrendererprogress.diff b/net-im/gaim/files/gaim-0.83cvs-gtkcellrendererprogress.diff new file mode 100644 index 000000000000..2e0fad107181 --- /dev/null +++ b/net-im/gaim/files/gaim-0.83cvs-gtkcellrendererprogress.diff @@ -0,0 +1,319 @@ +=================================================================== +RCS file: /cvsroot/gaim/gaim/src/gtkcellrendererprogress.c,v +retrieving revision 1.6 +retrieving revision 1.7 +diff -u -r1.6 -r1.7 +--- gaim/gaim/src/gtkcellrendererprogress.c 2004/01/10 04:04:56 1.6 ++++ gaim/gaim/src/gtkcellrendererprogress.c 2004/08/28 12:58:57 1.7 +@@ -25,24 +25,24 @@ + + #include "gtkcellrendererprogress.h" + +-static void gtk_cell_renderer_progress_get_property (GObject *object, ++static void gaim_gtk_cell_renderer_progress_get_property (GObject *object, + guint param_id, + GValue *value, + GParamSpec *pspec); +-static void gtk_cell_renderer_progress_set_property (GObject *object, ++static void gaim_gtk_cell_renderer_progress_set_property (GObject *object, + guint param_id, + const GValue *value, + GParamSpec *pspec); +-static void gtk_cell_renderer_progress_init (GtkCellRendererProgress *cellprogress); +-static void gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *class); +-static void gtk_cell_renderer_progress_get_size (GtkCellRenderer *cell, ++static void gaim_gtk_cell_renderer_progress_init (GaimGtkCellRendererProgress *cellprogress); ++static void gaim_gtk_cell_renderer_progress_class_init (GaimGtkCellRendererProgressClass *class); ++static void gaim_gtk_cell_renderer_progress_get_size (GtkCellRenderer *cell, + GtkWidget *widget, + GdkRectangle *cell_area, + gint *x_offset, + gint *y_offset, + gint *width, + gint *height); +-static void gtk_cell_renderer_progress_render (GtkCellRenderer *cell, ++static void gaim_gtk_cell_renderer_progress_render (GtkCellRenderer *cell, + GdkWindow *window, + GtkWidget *widget, + GdkRectangle *background_area, +@@ -50,7 +50,7 @@ + GdkRectangle *expose_area, + guint flags); + #if 0 +-static gboolean gtk_cell_renderer_progress_activate (GtkCellRenderer *cell, ++static gboolean gaim_gtk_cell_renderer_progress_activate (GtkCellRenderer *cell, + GdkEvent *event, + GtkWidget *widget, + const gchar *path, +@@ -58,7 +58,7 @@ + GdkRectangle *cell_area, + guint flags); + #endif +-static void gtk_cell_renderer_progress_finalize (GObject *gobject); ++static void gaim_gtk_cell_renderer_progress_finalize (GObject *gobject); + + enum { + LAST_SIGNAL +@@ -66,7 +66,6 @@ + + enum { + PROP_0, +- + PROP_PERCENTAGE, + PROP_TEXT, + PROP_SHOW_TEXT +@@ -75,7 +74,7 @@ + static gpointer parent_class; + /* static guint progress_cell_renderer_signals [LAST_SIGNAL]; */ + +-GType gtk_cell_renderer_progress_get_type (void) ++GType gaim_gtk_cell_renderer_progress_get_type (void) + { + static GType cell_progress_type = 0; + +@@ -83,46 +82,46 @@ + { + static const GTypeInfo cell_progress_info = + { +- sizeof (GtkCellRendererProgressClass), ++ sizeof (GaimGtkCellRendererProgressClass), + NULL, /* base_init */ + NULL, /* base_finalize */ +- (GClassInitFunc) gtk_cell_renderer_progress_class_init, ++ (GClassInitFunc) gaim_gtk_cell_renderer_progress_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ +- sizeof (GtkCellRendererProgress), ++ sizeof (GaimGtkCellRendererProgress), + 0, /* n_preallocs */ +- (GInstanceInitFunc) gtk_cell_renderer_progress_init, ++ (GInstanceInitFunc) gaim_gtk_cell_renderer_progress_init, + }; + + cell_progress_type = +- g_type_register_static (GTK_TYPE_CELL_RENDERER, "GtkCellRendererProgress", +- &cell_progress_info, 0); ++ g_type_register_static (GTK_TYPE_CELL_RENDERER, ++ "GaimGtkCellRendererProgress", ++ &cell_progress_info, 0); + } + + return cell_progress_type; + } + +- +-static void gtk_cell_renderer_progress_init (GtkCellRendererProgress *cellprogress) ++static void gaim_gtk_cell_renderer_progress_init (GaimGtkCellRendererProgress *cellprogress) + { + GTK_CELL_RENDERER(cellprogress)->mode = GTK_CELL_RENDERER_MODE_INERT; + GTK_CELL_RENDERER(cellprogress)->xpad = 2; + GTK_CELL_RENDERER(cellprogress)->ypad = 2; + } + +-static void gtk_cell_renderer_progress_class_init (GtkCellRendererProgressClass *class) ++static void gaim_gtk_cell_renderer_progress_class_init (GaimGtkCellRendererProgressClass *class) + { + GObjectClass *object_class = G_OBJECT_CLASS(class); + GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS(class); + + parent_class = g_type_class_peek_parent (class); +- object_class->finalize = gtk_cell_renderer_progress_finalize; ++ object_class->finalize = gaim_gtk_cell_renderer_progress_finalize; + +- object_class->get_property = gtk_cell_renderer_progress_get_property; +- object_class->set_property = gtk_cell_renderer_progress_set_property; ++ object_class->get_property = gaim_gtk_cell_renderer_progress_get_property; ++ object_class->set_property = gaim_gtk_cell_renderer_progress_set_property; + +- cell_class->get_size = gtk_cell_renderer_progress_get_size; +- cell_class->render = gtk_cell_renderer_progress_render; ++ cell_class->get_size = gaim_gtk_cell_renderer_progress_get_size; ++ cell_class->render = gaim_gtk_cell_renderer_progress_render; + + g_object_class_install_property (object_class, + PROP_PERCENTAGE, +@@ -131,7 +130,6 @@ + "The fractional progress to display", + 0, 1, 0, + G_PARAM_READWRITE)); +- + g_object_class_install_property (object_class, + PROP_TEXT, + g_param_spec_string ("text", +@@ -148,23 +146,21 @@ + G_PARAM_READABLE | G_PARAM_WRITABLE)); + } + +- +- +-static void gtk_cell_renderer_progress_finalize (GObject *object) ++static void gaim_gtk_cell_renderer_progress_finalize (GObject *object) + { + /* +- GtkCellRendererProgress *cellprogress = GTK_CELL_RENDERER_PROGRESS(object); ++ GaimGtkCellRendererProgress *cellprogress = GAIM_GTK_CELL_RENDERER_PROGRESS(object); + */ + + (* G_OBJECT_CLASS (parent_class)->finalize) (object); + } + +-static void gtk_cell_renderer_progress_get_property (GObject *object, ++static void gaim_gtk_cell_renderer_progress_get_property (GObject *object, + guint param_id, + GValue *value, + GParamSpec *psec) + { +- GtkCellRendererProgress *cellprogress = GTK_CELL_RENDERER_PROGRESS(object); ++ GaimGtkCellRendererProgress *cellprogress = GAIM_GTK_CELL_RENDERER_PROGRESS(object); + + switch (param_id) + { +@@ -183,12 +179,12 @@ + } + } + +-static void gtk_cell_renderer_progress_set_property (GObject *object, ++static void gaim_gtk_cell_renderer_progress_set_property (GObject *object, + guint param_id, + const GValue *value, + GParamSpec *pspec) + { +- GtkCellRendererProgress *cellprogress = GTK_CELL_RENDERER_PROGRESS (object); ++ GaimGtkCellRendererProgress *cellprogress = GAIM_GTK_CELL_RENDERER_PROGRESS (object); + + switch (param_id) + { +@@ -210,12 +206,12 @@ + } + } + +-GtkCellRenderer *gtk_cell_renderer_progress_new(void) ++GtkCellRenderer *gaim_gtk_cell_renderer_progress_new(void) + { +- return g_object_new(GTK_TYPE_CELL_RENDERER_PROGRESS, NULL); ++ return g_object_new(GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS, NULL); + } + +-static void gtk_cell_renderer_progress_get_size (GtkCellRenderer *cell, ++static void gaim_gtk_cell_renderer_progress_get_size (GtkCellRenderer *cell, + GtkWidget *widget, + GdkRectangle *cell_area, + gint *x_offset, +@@ -251,7 +247,7 @@ + } + + +-static void gtk_cell_renderer_progress_render (GtkCellRenderer *cell, ++static void gaim_gtk_cell_renderer_progress_render (GtkCellRenderer *cell, + GdkWindow *window, + GtkWidget *widget, + GdkRectangle *background_area, +@@ -259,7 +255,7 @@ + GdkRectangle *expose_area, + guint flags) + { +- GtkCellRendererProgress *cellprogress = (GtkCellRendererProgress *) cell; ++ GaimGtkCellRendererProgress *cellprogress = (GaimGtkCellRendererProgress *) cell; + + gint width, height; + GtkStateType state; +@@ -271,12 +267,10 @@ + state = GTK_STATE_ACTIVE; + else + state = GTK_STATE_NORMAL; +- +- +- ++ + width -= cell->xpad*2; + height -= cell->ypad*2; +- ++ + gtk_paint_box (widget->style, + window, + GTK_STATE_NORMAL, GTK_SHADOW_IN, + +=================================================================== +RCS file: /cvsroot/gaim/gaim/src/gtkcellrendererprogress.h,v +retrieving revision 1.3 +retrieving revision 1.4 +diff -u -r1.3 -r1.4 +--- gaim/gaim/src/gtkcellrendererprogress.h 2004/08/08 05:37:58 1.3 ++++ gaim/gaim/src/gtkcellrendererprogress.h 2004/08/28 12:58:57 1.4 +@@ -1,4 +1,4 @@ +-/* gtkcellrendererprogress.h ++/* gtkxcellrendererprogress.h + * Gaim is the legal property of its developers, whose names are too numerous + * to list here. Please refer to the COPYRIGHT file distributed with this + * source distribution. +@@ -28,30 +28,30 @@ + #endif /* __cplusplus */ + + +-#define GTK_TYPE_CELL_RENDERER_PROGRESS (gtk_cell_renderer_progress_get_type()) +-#define GTK_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgress)) +-#define GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) +-#define GTK_IS_CELL_PROGRESS_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS)) +-#define GTK_IS_CELL_PROGRESS_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_PROGRESS)) +-#define GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_PROGRESS, GtkCellRendererProgressClass)) +- +-typedef struct _GtkCellRendererProgress GtkCellRendererProgress; +-typedef struct _GtkCellRendererProgressClass GtkCellRendererProgressClass; +- +- struct _GtkCellRendererProgress { +- GtkCellRenderer parent; +- +- gdouble progress; +- gchar *text; +- gboolean text_set; +- }; +- +- struct _GtkCellRendererProgressClass { +- GtkCellRendererClass parent_class; +- }; ++#define GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS (gaim_gtk_cell_renderer_progress_get_type()) ++#define GAIM_GTK_CELL_RENDERER_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS, GaimGtkCellRendererProgress)) ++#define GAIM_GTK_CELL_RENDERER_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS, GaimGtkCellRendererProgressClass)) ++#define GAIM_IS_GTK_CELL_PROGRESS_PROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS)) ++#define GAIM_IS_GTK_CELL_PROGRESS_PROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS)) ++#define GAIM_GTK_CELL_RENDERER_PROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GAIM_TYPE_GTK_CELL_RENDERER_PROGRESS, GaimGtkCellRendererProgressClass)) ++ ++typedef struct _GaimGtkCellRendererProgress GaimGtkCellRendererProgress; ++typedef struct _GaimGtkCellRendererProgressClass GaimGtkCellRendererProgressClass; ++ ++struct _GaimGtkCellRendererProgress { ++ GtkCellRenderer parent; ++ ++ gdouble progress; ++ gchar *text; ++ gboolean text_set; ++}; ++ ++struct _GaimGtkCellRendererProgressClass { ++ GtkCellRendererClass parent_class; ++}; + +- GType gtk_cell_renderer_progress_get_type (void); +- GtkCellRenderer *gtk_cell_renderer_progress_new (void); ++GType gaim_gtk_cell_renderer_progress_get_type (void); ++GtkCellRenderer *gaim_gtk_cell_renderer_progress_new (void); + + + #ifdef __cplusplus + +=================================================================== +RCS file: /cvsroot/gaim/gaim/src/gtkft.c,v +retrieving revision 1.55 +retrieving revision 1.56 +diff -u -r1.55 -r1.56 +--- gaim/gaim/src/gtkft.c 2004/08/20 05:11:30 1.55 ++++ gaim/gaim/src/gtkft.c 2004/08/28 12:58:57 1.56 +@@ -499,7 +499,7 @@ + gtk_tree_view_append_column(GTK_TREE_VIEW(tree), column); + + /* Progress bar column */ +- renderer = gtk_cell_renderer_progress_new(); ++ renderer = gaim_gtk_cell_renderer_progress_new(); + column = gtk_tree_view_column_new_with_attributes(_("Progress"), renderer, + "percentage", COLUMN_PROGRESS, NULL); + gtk_tree_view_column_set_resizable(GTK_TREE_VIEW_COLUMN(column), TRUE); diff --git a/net-im/gaim/gaim-0.82.1.ebuild b/net-im/gaim/gaim-0.82.1.ebuild index 55ef33b031b6..f316ec296183 100644 --- a/net-im/gaim/gaim-0.82.1.ebuild +++ b/net-im/gaim/gaim-0.82.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/gaim/gaim-0.82.1.ebuild,v 1.1 2004/08/27 14:12:20 rizzo Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/gaim/gaim-0.82.1.ebuild,v 1.2 2004/08/28 18:43:24 rizzo Exp $ inherit flag-o-matic eutils gcc debug @@ -64,6 +64,8 @@ src_unpack() { unpack ${A} cd ${S} use cjk && epatch ${FILESDIR}/gaim-0.76-xinput.patch + cd ${S}/src + epatch ${FILESDIR}/gaim-0.83cvs-gtkcellrendererprogress.diff } src_compile() { |