}
if (accel_key)
- gtk_accel_map_change_entry (accel_path, accel_key, accel_mods, TRUE);
+ gtk_accel_map_add_entry (accel_path, accel_key, accel_mods);
gtk_action_set_accel_path (action, accel_path);
gtk_action_group_add_action (action_group, action);
* Creates a #GtkImage displaying a stock icon. Sample stock icon
* names are #GTK_STOCK_OPEN, #GTK_STOCK_EXIT. Sample stock sizes
* are #GTK_ICON_SIZE_MENU, #GTK_ICON_SIZE_SMALL_TOOLBAR. If the stock
- * icon name isn't known, a "broken image" icon will be displayed instead.
+ * icon name isn't known, the image will be empty.
* You can register your own stock icon names, see
* gtk_icon_factory_add_default() and gtk_icon_factory_add().
*
break;
case GTK_IMAGE_STOCK:
- if (gtk_style_lookup_icon_set (widget->style, image->data.stock.stock_id))
- stock_id = image->data.stock.stock_id;
- else
- stock_id = GTK_STOCK_MISSING_IMAGE;
pixbuf = gtk_widget_render_icon (widget,
- stock_id,
+ image->data.stock.stock_id,
image->icon_size,
NULL);
if (pixbuf)
{
GtkWidget *widget = GTK_WIDGET (image);
GdkPixbuf *pixbuf = NULL;
- gchar *stock_id;
/* We update stock/icon set on every size request, because
* the theme could have affected the size; for other kinds of
switch (image->storage_type)
{
case GTK_IMAGE_STOCK:
- if (gtk_style_lookup_icon_set (widget->style, image->data.stock.stock_id))
- stock_id = image->data.stock.stock_id;
- else
- stock_id = GTK_STOCK_MISSING_IMAGE;
pixbuf = gtk_widget_render_icon (widget,
- stock_id,
+ image->data.stock.stock_id,
image->icon_size,
NULL);
break;