my sample applet seems to create a seperate panel




I think I have a misbehaved applet, that seems to create a very large
applet in a seperate panel.  Actually the first time I ran it, it crashed,
then gnome-session tried to restart it, and detected another panel
running.  Next thing I knew, I have two panels running.  Here is the code,
and the sample config file that I used to create it.  Can someone compile
it and see if it does the same thing.  I want to know if it's my machine
set up or gnome-libs/gnome-core thats acting wierd.

	sri


---------------------------------------------------------------------------
Sri Ramkrishna         /|\ Unix is very user friendly, its just very picky
email: sri@aracnet.com -|- on who it is friendly to. -- Unknown? 
phone: 503-356-1078    \|/ 
---------------------------------------------------------------------------
                        |


/* config.h.  Generated automatically by configure.  */
/* config.h.in.  Generated automatically from configure.in by autoheader.  */

/* Define if using alloca.c.  */
/* #undef C_ALLOCA */

/* Define to empty if the keyword does not work.  */
/* #undef const */

/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
   This function is required for alloca.c support on those systems.  */
/* #undef CRAY_STACKSEG_END */

/* Define if you have alloca, as a function or macro.  */
#define HAVE_ALLOCA 1

/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
#define HAVE_ALLOCA_H 1

/* Define if you have a working `mmap' system call.  */
#define HAVE_MMAP 1

/* Define as __inline if that's what the C compiler calls it.  */
/* #undef inline */

/* Define to `long' if <sys/types.h> doesn't define.  */
/* #undef off_t */

/* Define if you need to in order for stat and other things to work.  */
/* #undef _POSIX_SOURCE */

/* Define to `unsigned' if <sys/types.h> doesn't define.  */
/* #undef size_t */

/* If using the C implementation of alloca, define if you know the
   direction of stack growth for your system; otherwise it will be
   automatically deduced at run-time.
 STACK_DIRECTION > 0 => grows toward higher addresses
 STACK_DIRECTION < 0 => grows toward lower addresses
 STACK_DIRECTION = 0 => direction of growth unknown
 */
/* #undef STACK_DIRECTION */

/* Define if you have the ANSI C header files.  */
#define STDC_HEADERS 1

/* Define if lex declares yytext as a char * by default, not a char[].  */
#define YYTEXT_POINTER 1

#define ENABLE_NLS 1
/* #undef HAVE_CATGETS */
/* #undef HAVE_DEVGTK */
#define HAVE_GETTEXT 1
#define HAVE_LC_MESSAGES 1
#define HAVE_STPCPY 1
#define HAVE_LIBSM 1
/* #undef HAVE_PROGRAM_INVOCATION_SHORT_NAME */
/* #undef HAVE_PROGRAM_INVOCATION_NAME */
#define PACKAGE "gnome-core"
#define VERSION "1.0.5"

#define HAVE_LIBGTOP 1

/* Define if LibGTop has support for multiple processors. */
/* #undef HAVE_LIBGTOP_SMP */

/* Define if there is no `u_int64_t' and `int64_t'. */
/* #undef u_int64_t */
/* #undef int64_t */

/* LibGTop major, minor and micro version. */
#define LIBGTOP_MAJOR_VERSION 1
#define LIBGTOP_MINOR_VERSION 0
#define LIBGTOP_MICRO_VERSION 1

/* LibGTop version and numerical version code ("1.234.567" -> 1234567). */
#define LIBGTOP_VERSION "1.0.1"
#define LIBGTOP_VERSION_CODE 1000001

/* LibGTop server version, increased each time the protocol changes. */
#define LIBGTOP_SERVER_VERSION 5

/* Location of KDE menus */
#define KDE_MENUDIR "yes/applnk"

#define HAVE_ZVT_TERM_RESET 1

/* Define if you have the __argz_count function.  */
#define HAVE___ARGZ_COUNT 1

/* Define if you have the __argz_next function.  */
#define HAVE___ARGZ_NEXT 1

/* Define if you have the __argz_stringify function.  */
#define HAVE___ARGZ_STRINGIFY 1

/* Define if you have the dcgettext function.  */
#define HAVE_DCGETTEXT 1

/* Define if you have the dlopen function.  */
/* #undef HAVE_DLOPEN */

/* Define if you have the getcwd function.  */
#define HAVE_GETCWD 1

/* Define if you have the getpagesize function.  */
#define HAVE_GETPAGESIZE 1

/* Define if you have the munmap function.  */
#define HAVE_MUNMAP 1

/* Define if you have the putenv function.  */
#define HAVE_PUTENV 1

/* Define if you have the setenv function.  */
#define HAVE_SETENV 1

/* Define if you have the setlocale function.  */
#define HAVE_SETLOCALE 1

/* Define if you have the stpcpy function.  */
#define HAVE_STPCPY 1

/* Define if you have the strcasecmp function.  */
#define HAVE_STRCASECMP 1

/* Define if you have the strchr function.  */
#define HAVE_STRCHR 1

/* Define if you have the strdup function.  */
#define HAVE_STRDUP 1

/* Define if you have the <X11/SM/SMlib.h> header file.  */
#define HAVE_X11_SM_SMLIB_H 1

/* Define if you have the <X11/extensions/xf86misc.h> header file.  */
#define HAVE_X11_EXTENSIONS_XF86MISC_H 1

/* Define if you have the <argz.h> header file.  */
#define HAVE_ARGZ_H 1

/* Define if you have the <dl.h> header file.  */
/* #undef HAVE_DL_H */

/* Define if you have the <dlfcn.h> header file.  */
#define HAVE_DLFCN_H 1

/* Define if you have the <limits.h> header file.  */
#define HAVE_LIMITS_H 1

/* Define if you have the <linux/soundcard.h> header file.  */
#define HAVE_LINUX_SOUNDCARD_H 1

/* Define if you have the <locale.h> header file.  */
#define HAVE_LOCALE_H 1

/* Define if you have the <machine/soundcard.h> header file.  */
/* #undef HAVE_MACHINE_SOUNDCARD_H */

/* Define if you have the <malloc.h> header file.  */
#define HAVE_MALLOC_H 1

/* Define if you have the <net/ppp_defs.h> header file.  */
#define HAVE_NET_PPP_DEFS_H 1

/* Define if you have the <nl_types.h> header file.  */
#define HAVE_NL_TYPES_H 1

/* Define if you have the <string.h> header file.  */
#define HAVE_STRING_H 1

/* Define if you have the <sys/param.h> header file.  */
#define HAVE_SYS_PARAM_H 1

/* Define if you have the <sys/soundcard.h> header file.  */
/* #undef HAVE_SYS_SOUNDCARD_H */

/* Define if you have the <unistd.h> header file.  */
#define HAVE_UNISTD_H 1

/* Define if you have the i library (-li).  */
/* #undef HAVE_LIBI */

/* Define if you have the nsl library (-lnsl).  */
/* #undef HAVE_LIBNSL */

/* Define if you have the socket library (-lsocket).  */
/* #undef HAVE_LIBSOCKET */

/* Name of package */
#define PACKAGE "gnome-core"

/* Version number of package */
#define VERSION "1.0.5"

/* define if compiled symbols have a leading underscore */
/* #undef WITH_SYMBOL_UNDERSCORE */

#include "config.h"
#include <gnome.h>
#include <applet-widget.h>

int
main(int argc, char **argv)
{
   	GtkWidget *applet;
	GtkWidget *label;
	int goad_id;

	applet_widget_init("hello_applet", NULL, argc,argv,0,NULL,argv[0]);
	applet = applet_widget_new(goad_id);

	if (!applet)
	   	g_error("Can't create applet!\n");

	label = gtk_label_new("Hello There");
	gtk_widget_show(label);

	gtk_widget_show(applet);
	applet_widget_gtk_main();

	return 0;

}


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