Commit b900778f authored by Matthias Clasen's avatar Matthias Clasen

Small tweaks

parent 9095bd25
2006-06-01 Matthias Clasen <mclasen@redhat.com>
* tests/testnotebookdnd.c: Small tweaks to test more things.
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Add
an icon-spacing style property for the same purpose.
......
2006-06-01 Matthias Clasen <mclasen@redhat.com>
* tests/testnotebookdnd.c: Small tweaks to test more things.
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Add
an icon-spacing style property for the same purpose.
......
......@@ -109,12 +109,15 @@ on_notebook_drag_begin (GtkWidget *widget,
page_num = gtk_notebook_get_current_page (GTK_NOTEBOOK (widget));
pixbuf = gtk_widget_render_icon (widget,
(page_num % 2) ? GTK_STOCK_HELP : GTK_STOCK_STOP,
if (page_num > 2)
{
pixbuf = gtk_widget_render_icon (widget,
(page_num % 2) ? GTK_STOCK_HELP : GTK_STOCK_STOP,
GTK_ICON_SIZE_DND, NULL);
gtk_drag_set_icon_pixbuf (context, pixbuf, 0, 0);
g_object_unref (pixbuf);
gtk_drag_set_icon_pixbuf (context, pixbuf, 0, 0);
g_object_unref (pixbuf);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment