Commit 924fc5d8 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

added change_drop_zone_pos function

Wed Apr 22 02:25:39 1998  George Lebl  <jirka@5z.com>

        * panel-widget.[ch]: added change_drop_zone_pos function

Wed Apr 22 02:24:50 1998  George Lebl  <jirka@5z.com>

        * drawer.c: proper orientations set
parent 9f70f245
Wed Apr 22 02:25:39 1998 George Lebl <jirka@5z.com>
* panel-widget.[ch]: added change_drop_zone_pos function
Wed Apr 22 02:24:50 1998 George Lebl <jirka@5z.com>
* drawer.c: proper orientations set
Wed Apr 22 02:12:08 1998 George Lebl <jirka@5z.com>
* panel.c: checks for info!=NULL
......
Wed Apr 22 02:25:39 1998 George Lebl <jirka@5z.com>
* panel-widget.[ch]: added change_drop_zone_pos function
Wed Apr 22 02:24:50 1998 George Lebl <jirka@5z.com>
* drawer.c: proper orientations set
Wed Apr 22 02:12:08 1998 George Lebl <jirka@5z.com>
* panel.c: checks for info!=NULL
......
......@@ -206,24 +206,37 @@ set_drawer_applet_orient(Drawer *drawer, DrawerOrient orient)
"gnome-menu-down.xpm");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
PANEL_VERTICAL);
panel_widget_change_drop_zone_pos(PANEL_WIDGET(drawer->
drawer),
DROP_ZONE_RIGHT);
break;
case DRAWER_UP:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-up.xpm");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
PANEL_VERTICAL);
panel_widget_change_drop_zone_pos(PANEL_WIDGET(drawer->
drawer),
DROP_ZONE_LEFT);
break;
case DRAWER_RIGHT:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-right.xpm");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
PANEL_HORIZONTAL);
panel_widget_change_drop_zone_pos(PANEL_WIDGET(drawer->
drawer),
DROP_ZONE_RIGHT);
break;
case DRAWER_LEFT:
pixmap_name = gnome_unconditional_pixmap_file(
"gnome-menu-left.xpm");
panel_widget_change_orient(PANEL_WIDGET(drawer->drawer),
PANEL_HORIZONTAL);
panel_widget_change_drop_zone_pos(PANEL_WIDGET(drawer->
drawer),
DROP_ZONE_LEFT);
break;
}
......
......@@ -2348,6 +2348,18 @@ panel_widget_change_orient(PanelWidget *panel,
panel->drawer_drop_zone_pos);
}
void
panel_widget_change_drop_zone_pos(PanelWidget *panel,
DrawerDropZonePos drop_zone_pos)
{
panel_widget_change_params(panel,
panel->orient,
panel->snapped,
panel->mode,
panel->state,
drop_zone_pos);
}
void
panel_widget_restore_state(PanelWidget *panel)
......
......@@ -202,6 +202,10 @@ void panel_widget_change_params (PanelWidget *panel,
/*changing parameters (orient only)*/
void panel_widget_change_orient (PanelWidget *panel,
PanelOrientation orient);
/*changing parameters (dropzonepos only)*/
void panel_widget_change_drop_zone_pos(PanelWidget *panel,
DrawerDropZonePos
drop_zone_pos);
/*change global params*/
void panel_widget_change_global (gint explicit_step,
......
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