LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to find the callback.c file (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-find-the-callback-c-file-738544/)

thilothama 07-08-2009 04:22 AM

unable to find the callback.c file
 
hello friends,
I have just started to learn linux and trying to develop a GUI using Anjuta/Glade.I opened glade and designed the interface using the palette.my application would just accept the country name and display its corresponding currency and capital.after finishing the interface i just saved it and clicked on build project...actually according to the tutorials,the callbacks.c file should be generated once we build the application.But i am unable to find it and edit the code as the callbacks.c file is missing.i attached the callbacks for the necessary widgets too....i use glade 3.and Anjuta 2.26 version. kindly help me friends


when i build i get these messages...

/home/awsd/countryinfo/configure: line 5742: syntax error near unexpected token `GNOMELOCALEDIR,'
/home/awsd/countryinfo/configure: line 5742: `AC_DEFINE_DIR(GNOMELOCALEDIR, "${datadir}/locale", locale directory)'


my main.c has the foll contents:

#ifdef HAVE_CONFIG_H
# include <config.h>
#endif

#include <string.h>

#include <gtk/gtk.h>
#include <panel-applet.h>

static gboolean
applet_factory (PanelApplet *applet, const gchar *iid, gpointer user_data)
{
GtkWidget *label;

if (strcmp (iid, "OAFIID:CountryinfoApplet") != 0)
return FALSE;

label = gtk_label_new ("Hello World");
gtk_container_add (GTK_CONTAINER (applet), label);

gtk_widget_show_all (GTK_WIDGET (applet));

return TRUE;
}

PANEL_APPLET_BONOBO_FACTORY ("OAFIID:CountryinfoApplet_Factory",
PANEL_TYPE_APPLET,
"GNOME Applet",
"0",
applet_factory,
NULL);

thilothama 07-08-2009 10:57 AM

friends help me with this problem....no one knows this stuff?


All times are GMT -5. The time now is 01:40 AM.