Enlightenment CVS committal

Author  : atmosphere
Project : e17
Module  : apps/iconbar

Dir     : e17/apps/iconbar/src


Modified Files:
        main.c prefs.c prefs.h 


Log Message:
support remembering whether your iconbar was sticky or not, now all we have
to do is create signals to let the theme set these values :)

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/iconbar/src/main.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- main.c      17 Jan 2004 20:34:56 -0000      1.10
+++ main.c      17 Jan 2004 20:50:06 -0000      1.11
@@ -53,6 +53,7 @@
   ecore_evas_borderless_set(ee, iconbar_config_borderless_get());
   ecore_evas_shaped_set(ee, iconbar_config_shaped_get());
   ecore_evas_withdrawn_set(ee, iconbar_config_withdrawn_get());
+  ecore_evas_sticky_set(ee, iconbar_config_sticky_get());
 
 #ifdef HAVE_TRANS_BG
   {
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/iconbar/src/prefs.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- prefs.c     17 Jan 2004 20:34:56 -0000      1.3
+++ prefs.c     17 Jan 2004 20:50:06 -0000      1.4
@@ -20,6 +20,7 @@
     int raise;
     int borderless;
     int withdrawn;
+    int sticky;
 };
 typedef struct _Iconbar_Prefs Iconbar_Prefs;
 
@@ -67,6 +68,8 @@
                ibprefs->raise = 0;
            if(!e_db_int_get(db, "/iconbar/withdrawn", &ibprefs->withdrawn))
                ibprefs->withdrawn = 0;
+           if(!e_db_int_get(db, "/iconbar/sticky", &ibprefs->sticky))
+               ibprefs->sticky = 1;
            if(!e_db_int_get(db, "/iconbar/shaped", &ibprefs->shaped))
                ibprefs->shaped = 1;
            if(!e_db_int_get(db, "/iconbar/borderless", &ibprefs->shaped))
@@ -117,6 +120,7 @@
            e_db_str_set(db, "/iconbar/theme", ibprefs->theme);
            e_db_str_set(db, "/iconbar/time_format", ibprefs->time_format);
            e_db_int_set(db, "/iconbar/raise", ibprefs->raise);
+           e_db_int_set(db, "/iconbar/sticky", ibprefs->sticky);
            e_db_int_set(db, "/iconbar/withdrawn", ibprefs->withdrawn);
            e_db_int_set(db, "/iconbar/shaped", ibprefs->shaped);
            e_db_int_set(db, "/iconbar/borderless", ibprefs->borderless);
@@ -234,6 +238,12 @@
     if(ibprefs)
        ibprefs->withdrawn = on;
 }
+void
+iconbar_config_sticky_set(int on)
+{
+    if(ibprefs)
+       ibprefs->sticky = on;
+}
 /* query */
 const char*
 iconbar_config_theme_get(void)
@@ -312,6 +322,13 @@
        return(ibprefs->withdrawn);
     return(0);
 }
+int
+iconbar_config_sticky_get(void)
+{
+    if(ibprefs)
+       return(ibprefs->sticky);
+    return(0);
+}
 /*==========================================================================
  * Private Functions 
  *========================================================================*/
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/iconbar/src/prefs.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- prefs.h     17 Jan 2004 20:34:56 -0000      1.3
+++ prefs.h     17 Jan 2004 20:50:06 -0000      1.4
@@ -18,6 +18,7 @@
 void iconbar_config_shaped_set(int on);
 void iconbar_config_borderless_set(int on);
 void iconbar_config_withdrawn_set(int on);
+void iconbar_config_sticky_set(int on);
 
 /* query */
 const char *iconbar_config_theme_get(void);
@@ -30,5 +31,6 @@
 int iconbar_config_shaped_get(void);
 int iconbar_config_borderless_get(void);
 int iconbar_config_withdrawn_get(void);
+int iconbar_config_sticky_get(void);
 
 #endif




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to