[gnome-applets] General: Clean up GTK+ includes
- From: Callum McKenzie <callum src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-applets] General: Clean up GTK+ includes
- Date: Thu, 25 Jun 2009 09:22:25 +0000 (UTC)
commit a4615ac3f74d31442a7bda28435befe7d179af66
Author: Callum McKenzie <callum spooky-possum org>
Date: Thu Jun 25 20:56:53 2009 +1200
General: Clean up GTK+ includes
Remove #includes of specific gtk/gdk/glib header files in favour of the
generic <glib.h>, <gdk/gdk.h>, <gtk/gtk.h>. Most of this is a patch
from Luis Menina (see bug 560678) with mini-commander fixes by myself.
The gswitchit applet does pass yet because of libgnomekbd.
gswitchit/gswitchit-applet.c | 2 +-
gswitchit/gswitchit-applet.h | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gswitchit/gswitchit-applet.c b/gswitchit/gswitchit-applet.c
index a2f3248..dab7ebf 100644
--- a/gswitchit/gswitchit-applet.c
+++ b/gswitchit/gswitchit-applet.c
@@ -28,7 +28,7 @@
#include <unistd.h>
#include <stdlib.h>
-#include <gdk/gdkscreen.h>
+#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#define GROUPS_SUBMENU_PATH "/popups/popup/groups"
diff --git a/gswitchit/gswitchit-applet.h b/gswitchit/gswitchit-applet.h
index 5569933..51d0edc 100644
--- a/gswitchit/gswitchit-applet.h
+++ b/gswitchit/gswitchit-applet.h
@@ -17,9 +17,8 @@
#ifndef __GSWITCHIT_APPLET_H__
#define __GSWITCHIT_APPLET_H__
-#include <gdk/gdkevents.h>
-#include <gdk/gdkkeysyms.h>
-#include <gtk/gtkwidget.h>
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
#include <panel-applet.h>
#include <libgnomekbd/gkbd-indicator.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]