[yast-commit] r62248 - /trunk/gtk/src/YGPushButton.cc
Author: rpmcruz Date: Wed Jul 14 12:59:23 2010 New Revision: 62248 URL: http://svn.opensuse.org/viewcvs/yast?rev=62248&view=rev Log: Force show icon for explicitely set icons. Modified: trunk/gtk/src/YGPushButton.cc Modified: trunk/gtk/src/YGPushButton.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGPushButton.cc?rev=62248&r1=62247&r2=62248&view=diff ============================================================================== --- trunk/gtk/src/YGPushButton.cc (original) +++ trunk/gtk/src/YGPushButton.cc Wed Jul 14 12:59:23 2010 @@ -96,7 +96,7 @@ GtkButton *button = GTK_BUTTON (getWidget()); if (icon.empty()) { m_customIcon = false; - // no need to worry about freeing the image, let it live with button + // can't remove image; just hide it GtkWidget *image = gtk_button_get_image (button); if (image) gtk_widget_hide (image); @@ -112,6 +112,8 @@ if (pixbuf) { GtkWidget *image = gtk_image_new_from_pixbuf (pixbuf); gtk_button_set_image (button, image); + // disregard gtk-button-images setting for explicitly set icons + gtk_widget_show (image); g_object_unref (G_OBJECT (pixbuf)); } else -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rpmcruz@svn.opensuse.org