Author: rpmcruz
Date: Thu Feb 25 17:16:59 2010
New Revision: 61026
URL: http://svn.opensuse.org/viewcvs/yast?rev=61026&view=rev
Log:
* src/YGUtils.cc: bug fix 582536 and 582560. map jump-to to
ok icon. Don't map gtk-dialog- icons.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGUtils.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=61026&r1=61025&r2=61026&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Thu Feb 25 17:16:59 2010
@@ -1,3 +1,8 @@
+2010-02-25 Ricardo Cruz
+
+ * src/YGUtils.cc: bug fix 582536 and 582560. map jump-to to
+ ok icon. Don't map gtk-dialog- icons.
+
2010-02-24 Ricardo Cruz
* src/pkg/ygtkpkgdetailview.cc: fixed the dependencies
Modified: trunk/gtk/src/YGUtils.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUtils.cc?rev=61026&r1=61025&r2=61026&view=diff
==============================================================================
--- trunk/gtk/src/YGUtils.cc (original)
+++ trunk/gtk/src/YGUtils.cc Thu Feb 25 17:16:59 2010
@@ -621,7 +621,13 @@
_id = GTK_STOCK_DELETE;
else if (!strcmp (id, GTK_STOCK_QUIT))
_id = GTK_STOCK_APPLY;
- stockMap[cutUnderline (item.label)] = _id;
+ else if (!strcmp (id, GTK_STOCK_JUMP_TO))
+ _id = GTK_STOCK_OK;
+ else if (!strncmp (id, "gtk-dialog-", 11))
+ _id = 0;
+
+ if (_id)
+ 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
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org