graveman-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Graveman-cvs] Changes to graveman/current/src/config.c


From: sylvain cresto
Subject: [Graveman-cvs] Changes to graveman/current/src/config.c
Date: Tue, 19 Apr 2005 21:00:43 -0400

Index: graveman/current/src/config.c
diff -u graveman/current/src/config.c:1.35 graveman/current/src/config.c:1.36
--- graveman/current/src/config.c:1.35  Sun Apr 17 22:39:53 2005
+++ graveman/current/src/config.c       Wed Apr 20 01:00:31 2005
@@ -104,6 +104,7 @@
 #endif
   { CONF_STRING, "version", "1", CONF_SAVEALWAYS },
   { CONF_STRING, "scan_drives", "0", CONF_SAVEALWAYS + CONF_PERSIST },
+  { CONF_STRING, "theme", "default", CONF_SAVEALWAYS },
   { CONF_IGNORE, NULL, NULL, 0 },
 };
 
@@ -229,6 +230,7 @@
   conf_store_value("iconsize", "24");
   conf_store_value("statusbar", "1");
   conf_store_value("saveconfig", "1");
+  conf_store_value("theme", "default");
   if (s) {
     Gfifosize = atoi(s);
     if (Gfifosize<=0) Gfifosize=6;
@@ -554,6 +556,11 @@
     cherchecharset(NULL, Ag);
   }
 
+  if (Aop & SEARCH_THEMES) {
+    /* rechercher les themes */
+    get_theme_list(NULL);
+  }
+
   if (Aop & UPDATE_SIZE && GTK_IS_WIDGET(Lwindow1)) {
     gint Lx = 0, Ly = 0, Lwidth = 0, Lheight = 0;
     /* mise a jour position et taille de la fenetre */
@@ -796,12 +803,12 @@
 
     if (!strcmp((gchar *)Akey, "mkisofs") && FALSE == 
conf_get_boolean("mkisofs_support_isov2")) {
       /* mkisofs est bien la, mais pas de support ISO v2 */
-      gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), GiconeMITIGE);
+      gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), get_image("WARNIcon"));
       g_snprintf(Ltipstxt, sizeof(Ltipstxt)-1, _("%s was found but does not 
support ISO 9660 version 2, this function will be disabled."), (gchar *)Akey);
     } else if (!strcmp((gchar *)Akey, "sox") &&
         (FALSE == conf_get_boolean("sox_support_mp3") || FALSE == 
conf_get_boolean("sox_support_ogg"))) {
       /* sox est bien la, mais pas de support MP3 ou/et OGG */
-      gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), GiconeMITIGE);
+      gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), get_image("WARNIcon"));
       
       if (FALSE == conf_get_boolean("sox_support_mp3") && FALSE == 
conf_get_boolean("sox_support_ogg")) {
         g_snprintf(Ltipstxt, sizeof(Ltipstxt)-1, _("%s was found but does not 
support neither OGG or MP3 file format, those functions will be disabled."), 
(gchar *)Akey);
@@ -811,12 +818,12 @@
         g_snprintf(Ltipstxt, sizeof(Ltipstxt)-1, _("%s was found but does not 
support OGG file format, this function will be disabled."), (gchar *)Akey);
       }
     } else {
-      gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), GiconeOK);
+      gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), get_image("OKIcon"));
       g_snprintf(Ltipstxt, sizeof(Ltipstxt)-1, _("%s was found."), (gchar 
*)Akey);
     }
     gtk_tooltips_set_tip(sc_grave_get_data(Lg, "_tooltips"), Lobjtips, 
Ltipstxt, Ltipstxt);
   } else {
-    gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), GiconePASOK);
+    gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), get_image("BADIcon"));
     gtk_widget_set_sensitive(GTK_WIDGET(Lobjentry), FALSE);
     gtk_label_set_text(GTK_LABEL(Lobjlbl), (gchar *)Akey);
     g_snprintf(Ltipstxt, sizeof(Ltipstxt)-1, _("%s was not found, some 
features of graveman will be disabled."), (gchar *)Akey);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]