Author: rpmcruz
Date: Sat Aug 30 13:28:24 2008
New Revision: 50503
URL: http://svn.opensuse.org/viewcvs/yast?rev=50503&view=rev
Log:
* src/YGUtils.cc: stock exceptions for the media labels.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUtils.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=50503&r1=50502&r2=50503&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sat Aug 30 13:28:24 2008
@@ -1,3 +1,7 @@
+2008-08-20 Ricardo Cruz
+
+ * src/YGUtils.cc: stock exceptions for the media labels.
+
2008-08-29 Ricardo Cruz
* src/YGLayout.cc: implemented new libyui widget YButtonBox, making
Modified: trunk/gtk/src/YGUtils.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUtils.cc?rev=50503&r1=50502&r2=50503&view=diff
==============================================================================
--- trunk/gtk/src/YGUtils.cc (original)
+++ trunk/gtk/src/YGUtils.cc Sat Aug 30 13:28:24 2008
@@ -504,8 +504,14 @@
for (GSList *i = list; i; i = i->next) {
gchar *id = (gchar *) i->data;
GtkStockItem item;
- if (gtk_stock_lookup (id, &item))
- stockMap[cutUnderline (item.label)] = id;
+ if (gtk_stock_lookup (id, &item)) {
+ const gchar *_id = id;
+ if (!strcmp (id, GTK_STOCK_MEDIA_NEXT) || !strcmp (id, GTK_STOCK_MEDIA_FORWARD))
+ _id = GTK_STOCK_GO_FORWARD;
+ else if (!strcmp (id, GTK_STOCK_MEDIA_PREVIOUS) || !strcmp (id, GTK_STOCK_MEDIA_REWIND))
+ _id = GTK_STOCK_GO_BACK;
+ stockMap[cutUnderline (item.label)] = _id;
+ }
// some may not have a stock item because they can't be set on a label
// e.g.: gtk-directory, gtk-missing-image, gtk-dnd
g_free (id);
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org