Writing Panel Applets



ok ... enw stuff ... theold way of writing applets won't work, but don't
dispair the change is very simple ... look at some applets such as the
logout paplet in the panel dir or any other applet in the tree

now instead of doing all the corba stuff ... it's done for you ... look
at applet-widget.h ... what you basically do is

GtkWidget *applet;

...
applet = applet_widget_new(argv[0]);
...
/*create your widget whatever say w ...*/
...
applet_widget_add(APPLET_WIDGET(applet),w);
...
applet_widget_gtk_main();
...

that's it ... that's all you need to do to write an applet ... insted of
creating two separate functions for sessions_save and orient_change you
connect two signals of those names ... the return value from session_save
is nw allways true, which is most likely ok for just about everything ...
I will extend that soon ...

other stuff will come soon with the applet_widget_wrapper, you can use the
low level stuff if you need to do other stuff ...

as long as your applet is in the cvs I will update it if something does
change

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]