Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
desktops.c
Log Message:
Fix some dragbar ops.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/desktops.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -3 -r1.116 -r1.117
--- desktops.c 24 Jan 2005 23:37:49 -0000 1.116
+++ desktops.c 29 Jan 2005 09:57:31 -0000 1.117
@@ -1459,17 +1459,14 @@
/* Settings */
-#if 0 /* About to go */
-
-static int
-doDragdirSet(EWin * edummy, const char *params)
+static void
+DeskDragdirSet(const char *params)
{
- char pd;
- Button *b;
- int i;
+ int pd, i;
pd = Conf.desks.dragdir;
- if (params)
+
+ if (params && params[0])
Conf.desks.dragdir = atoi(params);
else
{
@@ -1485,18 +1482,18 @@
MoveDesktop(i, 0, 0);
DesksControlsRefresh();
}
+
autosave();
- return 0;
}
-static int
-doDragbarOrderSet(EWin * edummy, const char *params)
+static void
+DeskDragbarOrderSet(const char *params)
{
char pd;
- Button *b;
pd = Conf.desks.dragbar_ordering;
- if (params)
+
+ if (params && params[0])
Conf.desks.dragbar_ordering = atoi(params);
else
{
@@ -1509,10 +1506,12 @@
{
DesksControlsRefresh();
}
+
autosave();
- return 0;
}
+#if 0 /* FIXME */
+
static int
doDragbarWidthSet(EWin * edummy, const char *params)
{
@@ -2214,12 +2213,19 @@
SoundPlay("SOUND_DESKTOP_LOWER");
LowerDesktop(desk);
}
- else if (!strncmp(cmd, "drag", 2))
+ else if (!strcmp(cmd, "drag"))
{
if (prm[0])
desk = atoi(prm);
DesktopOpDrag(desk);
}
+ else if (!strcmp(cmd, "dragbar"))
+ {
+ if (!strncmp(prm, "dir", 3))
+ DeskDragdirSet(p);
+ else if (!strncmp(prm, "ord", 3))
+ DeskDragbarOrderSet(p);
+ }
}
static void
@@ -2285,13 +2291,16 @@
"Desktop functions",
" desk ? Desktop info\n"
" desk cfg Configure desktops\n"
+ " desk drag Start deskdrag\n"
" desk set <nd> Set number of desktops\n"
" desk goto <d> Goto specified desktop\n"
" desk next Goto next desktop\n"
" desk prev Goto previous desktop\n"
" desk this Goto this desktop\n"
" desk lower <d> Lower desktop\n"
- " desk raise <d> Raise desktop\n"}
+ " desk raise <d> Raise desktop\n"
+ " desk dragbar pos Set dragbar position\n"
+ " desk dragbar order Set dragbar button order\n"}
,
{
DesktopsIpcArea,
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs