[Top][All Lists]
[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: |
Sun, 27 Feb 2005 20:28:12 -0500 |
Index: graveman/current/src/config.c
diff -u graveman/current/src/config.c:1.22 graveman/current/src/config.c:1.23
--- graveman/current/src/config.c:1.22 Sun Feb 27 19:07:44 2005
+++ graveman/current/src/config.c Mon Feb 28 01:28:09 2005
@@ -668,6 +668,9 @@
gchar *Lname, *Lconfvalue;
GtkEntry *Lobjentry;
GtkWidget *Lobjlbl;
+ GtkWidget *Lobjtips;
+ gchar Ltipstxt[_BUF_SIZE];
+ gboolean Lfull = TRUE;
if (!GTK_IS_WIDGET(Lobj)) return;
@@ -678,18 +681,41 @@
gtk_entry_set_text(Lobjentry, Lconfvalue ? Lconfvalue : "");
g_free(Lname);
- Lname = g_strdup_printf("%s%s", gtk_widget_get_name(Lobj), "lbl");
- Lobjlbl = sc_grave_get_widget(Lg, Lname);
- g_free(Lname);
+ Lobjlbl = sc_grave_get_widgetv(Lg, "%s%s", gtk_widget_get_name(Lobj), "lbl");
+ Lobjtips = sc_grave_get_widgetv(Lg, "%s%s", gtk_widget_get_name(Lobj),
"tips");
if (*(gchar *)Avalue) {
- gtk_image_set_from_stock(GTK_IMAGE(Lobj), "gtk-yes", GTK_ICON_SIZE_MENU);
gtk_widget_set_sensitive(GTK_WIDGET(Lobjentry), TRUE);
gtk_label_set_text(GTK_LABEL(Lobjlbl), (gchar *)Avalue);
+
+ 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);
+ 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);
+
+ 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);
+ } else if (FALSE == conf_get_boolean("sox_support_mp3")) {
+ g_snprintf(Ltipstxt, sizeof(Ltipstxt)-1, _("%s was found but does not
support MP3 file format, this function will be disabled."), (gchar *)Akey);
+ } else {
+ 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);
+ 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_stock(GTK_IMAGE(Lobj), "gtk-no", GTK_ICON_SIZE_MENU);
+ gtk_image_set_from_pixbuf(GTK_IMAGE(Lobj), GiconePASOK);
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);
+ gtk_tooltips_set_tip(sc_grave_get_data(Lg, "_tooltips"), Lobjtips,
Ltipstxt, Ltipstxt);
+
}
}
- [Graveman-cvs] Changes to graveman/current/src/config.c, (continued)
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/10
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/12
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/12
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/12
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/19
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/21
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/26
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/26
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/27
- [Graveman-cvs] Changes to graveman/current/src/config.c, sylvain cresto, 2005/02/27
- [Graveman-cvs] Changes to graveman/current/src/config.c,
sylvain cresto <=