Small tweaks

This commit is contained in:
Matthias Clasen
2006-06-01 16:41:40 +00:00
parent 9095bd257b
commit b900778ffd
3 changed files with 11 additions and 4 deletions

View File

@ -1,5 +1,7 @@
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.

View File

@ -1,5 +1,7 @@
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.

View File

@ -109,6 +109,8 @@ on_notebook_drag_begin (GtkWidget *widget,
page_num = gtk_notebook_get_current_page (GTK_NOTEBOOK (widget));
if (page_num > 2)
{
pixbuf = gtk_widget_render_icon (widget,
(page_num % 2) ? GTK_STOCK_HELP : GTK_STOCK_STOP,
GTK_ICON_SIZE_DND, NULL);
@ -116,6 +118,7 @@ on_notebook_drag_begin (GtkWidget *widget,
gtk_drag_set_icon_pixbuf (context, pixbuf, 0, 0);
g_object_unref (pixbuf);
}
}
static void
on_button_drag_data_received (GtkWidget *widget,