Re: my sample applet seems to create a seperate panel
- From: George <jirka 5z com>
- To: GNOME Malinglist <gnome-list gnome org>
- Subject: Re: my sample applet seems to create a seperate panel
- Date: Fri, 23 Apr 1999 01:45:48 -0700
On Thu, Apr 15, 1999 at 12:57:51PM -0700, Sri Ramkrishna wrote:
> #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);
goad_id is a string and needs to have it's .gnorba file I believe
>
> if (!applet)
> g_error("Can't create applet!\n");
>
> label = gtk_label_new("Hello There");
> gtk_widget_show(label);
>
> gtk_widget_show(applet);
you need to add the label to the applet with applet_widget_add ... otherwise
weird things just might happen
> applet_widget_gtk_main();
>
> return 0;
>
> }
George
--
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
The following implements RSA in perl and is illegal to export from the US:
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]