gnome panel applet won't compile



I was trying to compile official Hello World example of gnome applet and end up having errors.
Here is the source code:
-----------------------
#include <gtk/gtk.h> #include <panel-applet.h> static gboolean hello_world_applet_start (PanelApplet *applet) { GtkWidget *label; label = gtk_label_new ("Hello World"); gtk_container_add (GTK_CONTAINER (applet), label); gtk_widget_show_all (GTK_WIDGET (applet)); return TRUE; } static gboolean hello_world_factory_callback (PanelApplet *applet, const gchar *iid, gpointer data) { gboolean retval = FALSE; if (g_strcmp0 (iid, "HelloWorldApplet") == 0) retval = hello_world_applet_start (applet); return retval; } PANEL_APPLET_OUT_PROCESS_FACTORY ("HelloWorldFactory", PANEL_TYPE_APPLET, hello_world_factory_callback, NULL)

Compile command: (copied off of some guys post)
---------------------------
g++ -Wall -DGTK_DISABLE_SINGLE_INCLUDES -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE `pkg-config --cflags --libs gtk+-3.0 libpanelapplet-4.0` *.cpp -o helloworld

Error message:
--------------------------
/usr/include/gnome-panel-4.0/libpanel-applet/panel-applet.h:169:13: error: ‘GtkActionGroup’ has not been declared
GtkActionGroup *action_group);
^
/usr/include/gnome-panel-4.0/libpanel-applet/panel-applet.h:172:13: error: ‘GtkActionGroup’ has not been declared
GtkActionGroup *action_group);
^
/usr/include/gnome-panel-4.0/libpanel-applet/panel-applet.h:175:10: error: ‘GtkActionGroup’ has not been declared
GtkActionGroup *action_group);




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]