* [gentoo-commits] gentoo-x86 commit in app-accessibility/gnome-mag/files: gnome-mag-0.15.9-magnifier-fix-warnings.patch
@ 2010-01-15 12:39 Romain Perier (mrpouet)
0 siblings, 0 replies; 2+ messages in thread
From: Romain Perier (mrpouet) @ 2010-01-15 12:39 UTC (permalink / raw
To: gentoo-commits
mrpouet 10/01/15 12:39:47
Added: gnome-mag-0.15.9-magnifier-fix-warnings.patch
Log:
Fix some ugly warnings, originally per upstream bug #578798.
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Revision Changes Path
1.1 app-accessibility/gnome-mag/files/gnome-mag-0.15.9-magnifier-fix-warnings.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/gnome-mag/files/gnome-mag-0.15.9-magnifier-fix-warnings.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/gnome-mag/files/gnome-mag-0.15.9-magnifier-fix-warnings.patch?rev=1.1&content-type=text/plain
Index: gnome-mag-0.15.9-magnifier-fix-warnings.patch
===================================================================
From: Romain Perier <mrpouet@gentoo.org>
Date: Fri, 15 Jan 2010 13:06:08 +0100
Subject: Fix ugly warnings
1)° g_object_get_data(GObject *, const gchar *) : needs a GObject * in first argument,
so because GdkPixbuf inherits from GObject, we've just to call G_OBJECT() macro.
2)° Invalid function prototype, so invalid function pointer.
Note: this callback just returns a value, so it's inlinable.
3)° Implicit declaration of 'gdk_pixbuf_set_option' due to missing GDK_PIXBUF_ENABLE_BACKEND
(see gdk-pixbuf/gdk-pixbuf-io.h for more details)
4)° event was useless (unused)
---
magnifier/magnifier.c | 9 +++++----
magnifier/x11/gmag-graphical-server.c | 5 ++---
2 files changed, 7 insertions(+), 7 deletions(-)
--- a/magnifier/magnifier.c
+++ b/magnifier/magnifier.c
@@ -304,8 +304,8 @@ magnifier_set_cursor_from_pixbuf (Magnifier *magnifier,
magnifier->priv->cursor = pixmap;
magnifier->priv->cursor_mask = mask;
- xhot_string = g_object_get_data (cursor_pixbuf, "x_hot");
- yhot_string = g_object_get_data (cursor_pixbuf, "y_hot");
+ xhot_string = g_object_get_data (G_OBJECT(cursor_pixbuf), "x_hot");
+ yhot_string = g_object_get_data (G_OBJECT(cursor_pixbuf), "y_hot");
if (xhot_string)
magnifier->cursor_hotspot.x = atoi (xhot_string);
@@ -1214,9 +1214,10 @@ magnifier_gobject_dispose (GObject *object)
BONOBO_CALL_PARENT (G_OBJECT_CLASS, dispose, (object));
}
-static
+static inline
CORBA_boolean
-impl_magnifier_support_colorblind_filters (Magnifier *magnifier)
+impl_magnifier_support_colorblind_filters (PortableServer_Servant _servant G_GNUC_UNUSED,
+ CORBA_Environment *ev G_GNUC_UNUSED)
{
#ifdef HAVE_COLORBLIND
return CORBA_TRUE;
--- a/magnifier/x11/gmag-graphical-server.c
+++ b/magnifier/x11/gmag-graphical-server.c
@@ -20,7 +20,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
-
+#define GDK_PIXBUF_ENABLE_BACKEND
#include "config.h"
#include "magnifier.h"
#include "magnifier-private.h"
@@ -48,7 +48,6 @@
#include <stdlib.h>
#include <glib.h>
-
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
@@ -439,7 +438,7 @@ gmag_gs_events_handler (GIOChannel *source, GIOCondition condition,
static gboolean
gmag_gs_use_damage ()
{
- gint major, event, error;
+ gint major, error;
if (XQueryExtension (
dpy, "DAMAGE", &major, &damage_event_base, &error) &&
!g_getenv ("MAGNIFIER_IGNORE_DAMAGE")) {
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-accessibility/gnome-mag/files: gnome-mag-0.15.9-magnifier-fix-warnings.patch
@ 2013-12-23 0:26 Tom Wijsman (tomwij)
0 siblings, 0 replies; 2+ messages in thread
From: Tom Wijsman (tomwij) @ 2013-12-23 0:26 UTC (permalink / raw
To: gentoo-commits
tomwij 13/12/23 00:26:30
Removed: gnome-mag-0.15.9-magnifier-fix-warnings.patch
Log:
[QA] Remove unused files.
(Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-23 0:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-23 0:26 [gentoo-commits] gentoo-x86 commit in app-accessibility/gnome-mag/files: gnome-mag-0.15.9-magnifier-fix-warnings.patch Tom Wijsman (tomwij)
-- strict thread matches above, loose matches on Subject: below --
2010-01-15 12:39 Romain Perier (mrpouet)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox