summaryrefslogtreecommitdiff
path: root/tests/testnotebookdnd.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2013-06-24 17:31:22 -0400
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2013-06-24 19:53:08 -0400
commitfc71cbe5a6e22c7dea24a028d87ad0e2a050020b (patch)
treebaf11b422ee1640b6e17ac317e27eb2ea49ad59f /tests/testnotebookdnd.c
parentc79a21e1ddda961be43813daa9179505af89adb7 (diff)
downloadgtk+-fc71cbe5a6e22c7dea24a028d87ad0e2a050020b.tar.gz
Remove most of the stock API usage from the tests
With the exception of GtkActions and the tests for stock items.
Diffstat (limited to 'tests/testnotebookdnd.c')
-rw-r--r--tests/testnotebookdnd.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/testnotebookdnd.c b/tests/testnotebookdnd.c
index a347148d4d..47bcc58431 100644
--- a/tests/testnotebookdnd.c
+++ b/tests/testnotebookdnd.c
@@ -103,9 +103,16 @@ on_notebook_drag_begin (GtkWidget *widget,
if (page_num > 2)
{
- pixbuf = gtk_widget_render_icon_pixbuf (widget,
- (page_num % 2) ? GTK_STOCK_HELP : GTK_STOCK_STOP,
- GTK_ICON_SIZE_DND);
+ GtkIconTheme *icon_theme;
+ int width;
+
+ icon_theme = gtk_icon_theme_get_for_screen (gtk_widget_get_screen (widget));
+ gtk_icon_size_lookup (GTK_ICON_SIZE_DND, &width, NULL);
+ pixbuf = gtk_icon_theme_load_icon (icon_theme,
+ (page_num % 2) ? "help-browser" : "process-stop",
+ width,
+ GTK_ICON_LOOKUP_GENERIC_FALLBACK,
+ NULL);
gtk_drag_set_icon_pixbuf (context, pixbuf, 0, 0);
g_object_unref (pixbuf);
@@ -219,7 +226,7 @@ create_trash_button (void)
{
GtkWidget *button;
- button = gtk_button_new_from_stock (GTK_STOCK_DELETE);
+ button = gtk_button_new_with_label ("_Delete");
gtk_drag_dest_set (button,
GTK_DEST_DEFAULT_MOTION | GTK_DEST_DEFAULT_DROP,