Commit 270a2747 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

clean up the ORIENT_ mess and use only PanelOrientType instead of one for

Sun May 24 00:20:56 1998  George Lebl  <jirka@5z.com>

        * main.c,menu.[ch],drawer.[ch]: clean up the ORIENT_ mess and
          use only PanelOrientType instead of one for menu and one
          for drawer and one for everything else. Also now orientation
          of nested applets in drawers works much better when the Panel
          is on top or on the right

        * applet-lib.(cc|h),applet-widget.[ch],gnome-panel.idl,mico-glue.cc,
          main.[ch],panel.[ch]: make it possible to get the orient through
          corba
parent 4b142b9e
......@@ -327,8 +327,8 @@ can change ours as well. The different values represent the orientation
a menu/drawer would take were it on the panel, not the actual position
of the panel. If the Panel "sits" on the bottom edge of the screen you
will get ORIENT_UP, if it sits on the left edge, you get ORIENT_RIGHT,
and so on, if the panel is a vertical drawer you get ORIENT_RIGHT, if
it's a horizontal drawer you get ORIENT_UP.
and so on, if the panel is a vertical drawer you get ORIENT_RIGHT or
ORIENT_LEFT, if it's a horizontal drawer you get ORIENT_UP or ORIENT_DOWN.
Also note that you should bind the event before you do applet_widget_add,
as the event will be triggered during the add, so that you can set your
......
Sun May 24 00:20:56 1998 George Lebl <jirka@5z.com>
* main.c,menu.[ch],drawer.[ch]: clean up the ORIENT_ mess and
use only PanelOrientType instead of one for menu and one
for drawer and one for everything else. Also now orientation
of nested applets in drawers works much better when the Panel
is on top or on the right
* applet-lib.(cc|h),applet-widget.[ch],gnome-panel.idl,mico-glue.cc,
main.[ch],panel.[ch]: make it possible to get the orient through
corba
Sat May 23 22:57:50 1998 George Lebl <jirka@5z.com>
* panel-widget.c, panel.c: fixed some segfaults, by inhibiting
......
Sun May 24 00:20:56 1998 George Lebl <jirka@5z.com>
* main.c,menu.[ch],drawer.[ch]: clean up the ORIENT_ mess and
use only PanelOrientType instead of one for menu and one
for drawer and one for everything else. Also now orientation
of nested applets in drawers works much better when the Panel
is on top or on the right
* applet-lib.(cc|h),applet-widget.[ch],gnome-panel.idl,mico-glue.cc,
main.[ch],panel.[ch]: make it possible to get the orient through
corba
Sat May 23 22:57:50 1998 George Lebl <jirka@5z.com>
* panel-widget.c, panel.c: fixed some segfaults, by inhibiting
......
......@@ -394,6 +394,12 @@ gnome_panel_applet_abort_id (gint applet_id)
return 0;
}
gint
gnome_panel_applet_get_panel_orient (gint applet_id)
{
return panel_client->applet_get_panel_orient(cookie, applet_id);
}
char *
gnome_panel_applet_remove_from_panel (gint applet_id)
{
......
......@@ -16,17 +16,18 @@ char *get_full_path(char *argv0);
applet)*/
char *gnome_panel_applet_request_id (const char *path, const char *param,
int dorestart,
int *applet_id, char **cfgpath,
gint dorestart,
gint *applet_id, char **cfgpath,
char **globcfgpath, guint32 *winid);
char *gnome_panel_applet_register (GtkWidget *widget, int applet_id);
char *gnome_panel_applet_abort_id (int applet_id);
char *gnome_panel_applet_remove_from_panel (int applet_id);
char *gnome_panel_applet_register (GtkWidget *widget, gint applet_id);
char *gnome_panel_applet_abort_id (gint applet_id);
char *gnome_panel_applet_remove_from_panel (gint applet_id);
char *gnome_panel_applet_request_glob_cfg (char **globcfgpath);
gint gnome_panel_applet_get_panel_orient (gint applet_id);
char *gnome_panel_quit (void);
int gnome_panel_applet_init_corba (void);
int gnome_panel_applet_reinit_corba (void);
void gnome_panel_applet_register_callback (int applet_id,
void gnome_panel_applet_register_callback (gint applet_id,
char *name,
char *menutext,
AppletCallbackFunc func,
......
......@@ -242,11 +242,11 @@ applet_widget_set_tooltip(AppletWidget *applet, gchar *text)
gnome_panel_applet_remove_tooltip (applet->applet_id);
}
/* Get the oprientation the applet should use */
PanelOrientType
applet_widget_get_panel_orient(AppletWidget *applet)
{
/*FIXME: implement*/
return (PanelOrientType)0;
return (PanelOrientType)gnome_panel_applet_get_panel_orient (applet->applet_id);
}
AppletWidget*
......
......@@ -102,7 +102,7 @@ AppletWidget* applet_widget_get_by_id (gint applet_id);
gint applet_widget_get_applet_count (void);
/*FIXME: implement*/
/* Get the oprientation the applet should use */
PanelOrientType applet_widget_get_panel_orient (AppletWidget *applet);
/*use this instead of gnome init, if you want multi applet, you also
......
......@@ -46,19 +46,19 @@ reposition_drawer(Drawer *drawer)
NULL);
switch(drawer->orient) {
case DRAWER_UP:
case ORIENT_UP:
x = bx+(bw-dw)/2;
y = py - dh;
break;
case DRAWER_DOWN:
case ORIENT_DOWN:
x = bx+(bw-dw)/2;
y = py + ph;
break;
case DRAWER_LEFT:
case ORIENT_LEFT:
x = px - dw;
y = by+(bh-dh)/2;
break;
case DRAWER_RIGHT:
case ORIENT_RIGHT:
x = px + pw;
y = by+(bh-dh)/2;
break;
......@@ -99,7 +99,7 @@ enter_notify_drawer(GtkWidget *widget, GdkEventCrossing *event, gpointer data)
}
Drawer *
create_drawer_applet(GtkWidget * drawer_panel, DrawerOrient orient)
create_drawer_applet(GtkWidget * drawer_panel, PanelOrientType orient)
{
GtkWidget *pixmap;
Drawer *drawer;
......@@ -110,16 +110,16 @@ create_drawer_applet(GtkWidget * drawer_panel, DrawerOrient orient)
/*FIXME: drawers should have their own pixmaps I guess*/
switch(orient) {
case DRAWER_DOWN:
case ORIENT_DOWN:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-down.png");
break;
case DRAWER_UP:
case ORIENT_UP:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-up.png");
break;
case DRAWER_RIGHT:
case ORIENT_RIGHT:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-right.png");
break;
case DRAWER_LEFT:
case ORIENT_LEFT:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-left.png");
break;
}
......@@ -165,10 +165,10 @@ create_drawer_applet(GtkWidget * drawer_panel, DrawerOrient orient)
}
Drawer *
create_empty_drawer_applet(DrawerOrient orient)
create_empty_drawer_applet(PanelOrientType orient)
{
switch(orient) {
case DRAWER_UP:
case ORIENT_UP:
return create_drawer_applet(panel_widget_new(0,
PANEL_VERTICAL,
PANEL_DRAWER,
......@@ -177,7 +177,7 @@ create_empty_drawer_applet(DrawerOrient orient)
0, 0,
DROP_ZONE_LEFT, NULL, NULL),
orient);
case DRAWER_DOWN:
case ORIENT_DOWN:
return create_drawer_applet(panel_widget_new(0,
PANEL_VERTICAL,
PANEL_DRAWER,
......@@ -186,7 +186,7 @@ create_empty_drawer_applet(DrawerOrient orient)
0, 0,
DROP_ZONE_RIGHT, NULL, NULL),
orient);
case DRAWER_LEFT:
case ORIENT_LEFT:
return create_drawer_applet(panel_widget_new(0,
PANEL_HORIZONTAL,
PANEL_DRAWER,
......@@ -195,7 +195,7 @@ create_empty_drawer_applet(DrawerOrient orient)
0, 0,
DROP_ZONE_LEFT, NULL, NULL),
orient);
case DRAWER_RIGHT:
case ORIENT_RIGHT:
return create_drawer_applet(panel_widget_new(0,
PANEL_HORIZONTAL,
PANEL_DRAWER,
......@@ -209,7 +209,7 @@ create_empty_drawer_applet(DrawerOrient orient)
}
void
set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient)
set_drawer_applet_orient(Drawer *drawer, PanelOrientType orient)
{
GtkWidget *pixmap;
char *pixmap_name=NULL;
......@@ -219,7 +219,7 @@ set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient)
drawer->orient = orient;
switch (drawer->orient) {
case DRAWER_DOWN:
case ORIENT_DOWN:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-down.png");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
......@@ -229,7 +229,7 @@ set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient)
DROP_ZONE_RIGHT);
break;
case DRAWER_UP:
case ORIENT_UP:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-up.png");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
......@@ -238,7 +238,7 @@ set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient)
drawer),
DROP_ZONE_LEFT);
break;
case DRAWER_RIGHT:
case ORIENT_RIGHT:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-right.png");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
......@@ -247,7 +247,7 @@ set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient)
drawer),
DROP_ZONE_RIGHT);
break;
case DRAWER_LEFT:
case ORIENT_LEFT:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-left.png");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
......
#ifndef DRAWER_H
#define DRAWER_H
#include "panel.h"
BEGIN_GNOME_DECLS
#define DRAWER_PANEL "drawer_panel"
typedef enum {
DRAWER_UP,
DRAWER_LEFT,
DRAWER_RIGHT,
DRAWER_DOWN
} DrawerOrient;
typedef struct {
GtkWidget *button;
GtkWidget *drawer;
DrawerOrient orient;
PanelOrientType orient;
} Drawer;
Drawer * create_drawer_applet(GtkWidget * drawer_panel,
DrawerOrient orient);
PanelOrientType orient);
void set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient);
void set_drawer_applet_orient(Drawer *drawer, PanelOrientType orient);
Drawer * create_empty_drawer_applet(DrawerOrient orient);
Drawer * create_empty_drawer_applet(PanelOrientType orient);
void reposition_drawer(Drawer *drawer);
......
......@@ -25,6 +25,8 @@ module GNOME {
in short applet_id);
short applet_get_panel (in string cookie, in short applet_id);
short applet_get_pos (in string cookie, in short applet_id);
short applet_get_panel_orient (in string cookie,
in short applet_id);
void applet_show_menu (in string cookie, in short applet_id);
void applet_drag_start (in string cookie, in short applet_id);
void applet_drag_stop (in string cookie, in short applet_id);
......
......@@ -172,8 +172,8 @@ really_exec_prog(gint applet_id, gchar *path, gchar *param)
current_exec = applet_id;
/*wait 60 seconds before timing out*/
cur_timeout = gtk_timeout_add(300*100,exec_queue_timeout,NULL);
/*wait 100 seconds before timing out*/
cur_timeout = gtk_timeout_add(100*1000,exec_queue_timeout,NULL);
return FALSE;
}
......@@ -267,6 +267,66 @@ monitor_drawers(GtkWidget *w, gpointer data)
return FALSE;
}
static PanelSnapped
get_lowest_level_master_snapped(PanelWidget *panel)
{
while(panel->master_widget)
panel = gtk_object_get_data(GTK_OBJECT(panel->master_widget),
PANEL_APPLET_PARENT_KEY);
return panel->snapped;
}
PanelOrientType
get_applet_orient(PanelWidget *panel)
{
PanelOrientType orient=ORIENT_UP;
switch(panel->snapped) {
case PANEL_FREE:
orient = (panel->orient==PANEL_VERTICAL)?
ORIENT_RIGHT:ORIENT_UP;
break;
case PANEL_DRAWER:
switch(get_lowest_level_master_snapped(panel)){
case PANEL_FREE:
case PANEL_DRAWER:
orient=(panel->orient==PANEL_VERTICAL)?
ORIENT_RIGHT:ORIENT_UP;
break;
case PANEL_TOP:
orient=(panel->orient==PANEL_VERTICAL)?
ORIENT_RIGHT:ORIENT_DOWN;
break;
case PANEL_BOTTOM:
orient=(panel->orient==PANEL_VERTICAL)?
ORIENT_RIGHT:ORIENT_UP;
break;
case PANEL_LEFT:
orient=(panel->orient==PANEL_VERTICAL)?
ORIENT_RIGHT:ORIENT_UP;
break;
case PANEL_RIGHT:
orient=(panel->orient==PANEL_VERTICAL)?
ORIENT_LEFT:ORIENT_UP;
break;
}
break;
case PANEL_TOP:
orient = ORIENT_DOWN;
break;
case PANEL_BOTTOM:
orient = ORIENT_UP;
break;
case PANEL_LEFT:
orient = ORIENT_RIGHT;
break;
case PANEL_RIGHT:
orient = ORIENT_LEFT;
break;
}
return orient;
}
void
load_applet(gchar *id_str, gchar *path, gchar *params,
......@@ -324,7 +384,7 @@ load_applet(gchar *id_str, gchar *path, gchar *params,
} else if(strcmp(id_str,MENU_ID) == 0) {
Menu *menu;
menu = create_menu_applet(params, MENU_UP);
menu = create_menu_applet(params, ORIENT_UP);
register_toy(menu->button,menu->menu,menu,MENU_ID,NULL,params,
pos,panel,NULL,APPLET_MENU);
......@@ -349,33 +409,13 @@ load_applet(gchar *id_str, gchar *path, gchar *params,
} else if(strcmp(id_str,DRAWER_ID) == 0) {
Drawer *drawer;
PanelWidget *parent;
DrawerOrient orient=DRAWER_UP;
PanelWidget **panelarr;
parent = PANEL_WIDGET(g_list_nth(panels,panel)->data);
switch(parent->snapped) {
case PANEL_FREE:
case PANEL_DRAWER:
orient = (parent->orient==PANEL_VERTICAL)?
DRAWER_RIGHT:DRAWER_UP;
break;
case PANEL_TOP:
orient = DRAWER_DOWN;
break;
case PANEL_BOTTOM:
orient = DRAWER_UP;
break;
case PANEL_LEFT:
orient = DRAWER_RIGHT;
break;
case PANEL_RIGHT:
orient = DRAWER_LEFT;
break;
}
if(!params) {
drawer = create_empty_drawer_applet(orient);
drawer = create_empty_drawer_applet(
get_applet_orient(parent));
panel_setup(PANEL_WIDGET(drawer->drawer));
panels = g_list_append(panels,drawer->drawer);
} else {
......@@ -383,7 +423,7 @@ load_applet(gchar *id_str, gchar *path, gchar *params,
sscanf(params,"%d",&i);
drawer=create_drawer_applet(g_list_nth(panels,i)->data,
orient);
get_applet_orient(parent));
}
g_return_if_fail(drawer != NULL);
......@@ -534,76 +574,15 @@ orientation_change(gint applet_id, PanelWidget *panel)
{
AppletInfo *info = get_applet_info(applet_id);
if(info->type == APPLET_EXTERN) {
PanelOrientType orient=ORIENT_UP;
switch(panel->snapped) {
case PANEL_FREE:
case PANEL_DRAWER:
orient = (panel->orient==PANEL_VERTICAL)?
ORIENT_RIGHT:ORIENT_UP;
break;
case PANEL_TOP:
orient = ORIENT_DOWN;
break;
case PANEL_BOTTOM:
orient = ORIENT_UP;
break;
case PANEL_LEFT:
orient = ORIENT_RIGHT;
break;
case PANEL_RIGHT:
orient = ORIENT_LEFT;
break;
}
send_applet_change_orient(info->id_str,info->applet_id,orient);
send_applet_change_orient(info->id_str,info->applet_id,
get_applet_orient(panel));
} else if(info->type == APPLET_MENU) {
Menu *menu = info->data;
MenuOrient orient=MENU_UP;
switch(panel->snapped) {
case PANEL_FREE:
case PANEL_DRAWER:
orient = (panel->orient==PANEL_VERTICAL)?
MENU_RIGHT:MENU_UP;
break;
case PANEL_TOP:
orient = MENU_DOWN;
break;
case PANEL_BOTTOM:
orient = MENU_UP;
break;
case PANEL_LEFT:
orient = MENU_RIGHT;
break;
case PANEL_RIGHT:
orient = MENU_LEFT;
break;
}
set_menu_applet_orient(menu,orient);
set_menu_applet_orient(menu,get_applet_orient(panel));
} else if(info->type == APPLET_DRAWER) {
Drawer *drawer = info->data;
DrawerOrient orient = DRAWER_UP;
switch(panel->snapped) {
case PANEL_FREE:
case PANEL_DRAWER:
orient = (panel->orient==PANEL_VERTICAL)?
DRAWER_RIGHT:DRAWER_UP;
break;
case PANEL_TOP:
orient = DRAWER_DOWN;
break;
case PANEL_BOTTOM:
orient = DRAWER_UP;
break;
case PANEL_LEFT:
orient = DRAWER_RIGHT;
break;
case PANEL_RIGHT:
orient = DRAWER_LEFT;
break;
}
reposition_drawer(drawer);
set_drawer_applet_orient(drawer,orient);
set_drawer_applet_orient(drawer,get_applet_orient(panel));
panel_widget_foreach(PANEL_WIDGET(info->assoc),
orient_change_foreach,
(gpointer)info->assoc);
......@@ -935,7 +914,7 @@ init_user_panels(void)
g_snprintf(buf,256,"state=%d", PANEL_SHOWN);
state=gnome_config_get_int(buf);
g_snprintf(buf,256,"drawer_drop_zone_pos=%d", DRAWER_LEFT);
g_snprintf(buf,256,"drawer_drop_zone_pos=%d", DROP_ZONE_LEFT);
drop_pos=gnome_config_get_int(buf);
back_pixmap = gnome_config_get_string ("backpixmap=");
......
......@@ -7,6 +7,8 @@ void load_applet(char *id, char *path, char *params,
int pos, int panel, char *cfgpath);
void orientation_change(gint applet_id, PanelWidget *panel);
PanelOrientType get_applet_orient(PanelWidget *panel);
/* this applet has finished loading, if it was the one we were waiting
on, start the next applet */
void exec_queue_done(gint applet_id);
......
......@@ -345,19 +345,19 @@ menu_position (GtkMenu *menu, gint *x, gint *y, gpointer data)
gdk_window_get_origin (widget->window, &wx, &wy);
switch(menup->orient) {
case MENU_DOWN:
case ORIENT_DOWN:
*x = wx;
*y = wy + widget->allocation.height;
break;
case MENU_UP:
case ORIENT_UP:
*x = wx;
*y = wy - GTK_WIDGET (menu)->allocation.height;
break;
case MENU_RIGHT:
case ORIENT_RIGHT:
*x = wx + widget->allocation.width;
*y = wy;
break;
case MENU_LEFT:
case ORIENT_LEFT:
*x = wx - GTK_WIDGET (menu)->allocation.width;
*y = wy;
break;
......@@ -611,7 +611,7 @@ add_special_entries (GtkWidget *menu, GtkWidget *app_menu)
static Menu *
create_panel_menu (char *menudir, int main_menu,
MenuOrient orient)
PanelOrientType orient)
{
GtkWidget *pixmap;
Menu *menu;
......@@ -623,16 +623,16 @@ create_panel_menu (char *menudir, int main_menu,
if (main_menu)
switch(orient) {
case MENU_DOWN:
case ORIENT_DOWN:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-down.png");
break;
case MENU_UP:
case ORIENT_UP:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-up.png");
break;
case MENU_RIGHT:
case ORIENT_RIGHT:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-right.png");
break;
case MENU_LEFT:
case ORIENT_LEFT:
pixmap_name = gnome_unconditional_pixmap_file ("gnome-menu-left.png");
break;
}
......@@ -701,7 +701,7 @@ init_main_menu(void)
}
Menu *
create_menu_applet(char *arguments, MenuOrient orient)
create_menu_applet(char *arguments, PanelOrientType orient)
{
Menu *menu;
int main_menu;
......@@ -761,7 +761,7 @@ set_show_small_icons(gpointer data, gpointer user_data)
}
void
set_menu_applet_orient(Menu *menu, MenuOrient orient)
set_menu_applet_orient(Menu *menu, PanelOrientType orient)
{
GtkWidget *pixmap;
char *pixmap_name = NULL;
......@@ -773,19 +773,19 @@ set_menu_applet_orient(Menu *menu, MenuOrient orient)
if (strcmp (menu->path, ".") == 0)
switch (menu->orient) {
case MENU_DOWN:
case ORIENT_DOWN:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-down.png");
break;
case MENU_UP:
case ORIENT_UP:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-up.png");
break;
case MENU_RIGHT:
case ORIENT_RIGHT:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-right.png");
break;
case MENU_LEFT:
case ORIENT_LEFT:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-left.png");
break;
......
......@@ -3,26 +3,19 @@
BEGIN_GNOME_DECLS
typedef enum {
MENU_UP,
MENU_LEFT,
MENU_RIGHT,
MENU_DOWN
} MenuOrient;
typedef struct {
GtkWidget *button;
GtkWidget *menu;
char *path;
MenuOrient orient;
PanelOrientType orient;
} Menu;
void init_main_menu(void);
Menu * create_menu_applet(char *arguments,
MenuOrient orient);
PanelOrientType orient);
void set_menu_applet_orient(Menu *menu, MenuOrient orient);
void set_menu_applet_orient(Menu *menu, PanelOrientType orient);
/*used in foreach to set unset visibility of small_icons*/
void set_show_small_icons(gpointer data, gpointer user_data);
......
......@@ -79,6 +79,11 @@ public:
CHECK_COOKIE_V (0);
return ::applet_get_pos (applet_id);
}
CORBA::Short applet_get_panel_orient (const char *ccookie,
CORBA::Short applet_id) {
CHECK_COOKIE_V (0);
return (gint)::applet_get_panel_orient (applet_id);
}
void applet_show_menu (const char *ccookie, CORBA::Short applet_id) {
CHECK_COOKIE ();
::applet_show_menu (applet_id);
......
......@@ -700,6 +700,22 @@ applet_show_menu(gint applet_id)
GDK_CURRENT_TIME);
}
PanelOrientType
applet_get_panel_orient(gint applet_id)
{
AppletInfo *info = get_applet_info(applet_id);
PanelWidget *panel;
g_return_val_if_fail(info != NULL,ORIENT_UP);
panel = gtk_object_get_data(GTK_OBJECT(info->widget),
PANEL_APPLET_PARENT_KEY);
g_return_val_if_fail(panel != NULL,ORIENT_UP);
return get_applet_orient(panel);
}
int
applet_get_panel(gint applet_id)
......
......@@ -125,6 +125,7 @@ guint32 reserve_applet_spot (const char *id_str, const char *path,
void applet_abort_id(gint applet_id);
int applet_get_panel(gint applet_id);
int applet_get_pos(gint applet_id);
PanelOrientType applet_get_panel_orient(gint applet_id);
void applet_show_menu(gint applet_id);
void applet_drag_start(gint applet_id);
void applet_drag_stop(gint applet_id);
......
......@@ -25,6 +25,8 @@ module GNOME {
in short applet_id);
short applet_get_panel (in string cookie, in short applet_id);
short applet_get_pos (in string cookie, in short applet_id);
short applet_get_panel_orient (in string cookie,
in short applet_id);
void applet_show_menu (in string cookie, in short applet_id);
void applet_drag_start (in string cookie, in short applet_id);
void applet_drag_stop (in string cookie, in short applet_id);
......
......@@ -25,6 +25,8 @@ module GNOME {
in short applet_id);
short applet_get_panel (in string cookie, in short applet_id);
short applet_get_pos (in string cookie, in short applet_id);
short applet_get_panel_orient (in string cookie,
in short applet_id);
void applet_show_menu (in string cookie, in short applet_id);
void applet_drag_start (in string cookie, in short applet_id);
void applet_drag_stop (in string cookie, in short applet_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment