diff options
author | monsta <[email protected]> | 2016-10-15 15:39:12 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-10-15 15:39:12 +0300 |
commit | 40e26ed6d0e9ef84522ad0723f630bd7d796beec (patch) | |
tree | 67374984e9b7d2c60525976a008889775f7de4f3 /src/wm-tester/main.c | |
parent | 3b69fd200912e27ce64caf3bf5d4338aab73177b (diff) | |
download | marco-40e26ed6d0e9ef84522ad0723f630bd7d796beec.tar.bz2 marco-40e26ed6d0e9ef84522ad0723f630bd7d796beec.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'src/wm-tester/main.c')
-rw-r--r-- | src/wm-tester/main.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/wm-tester/main.c b/src/wm-tester/main.c index ae6db421..5a700955 100644 --- a/src/wm-tester/main.c +++ b/src/wm-tester/main.c @@ -201,9 +201,7 @@ set_up_icon_windows (void) GtkWidget *c; GList *icons; GdkPixbuf *pix; -#if GTK_CHECK_VERSION (3, 0, 0) int size = 0; -#endif w = gtk_window_new (GTK_WINDOW_TOPLEVEL); c = gtk_button_new_with_label ("Icon window"); @@ -211,43 +209,21 @@ set_up_icon_windows (void) icons = NULL; -#if GTK_CHECK_VERSION (3, 0, 0) gtk_icon_size_lookup (GTK_ICON_SIZE_LARGE_TOOLBAR, NULL, &size); pix = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "gtk-save", size, 0, NULL); -#else - pix = gtk_widget_render_icon (w, - GTK_STOCK_SAVE, - GTK_ICON_SIZE_LARGE_TOOLBAR, - NULL); -#endif - icons = g_list_append (icons, pix); if (i % 2) { -#if GTK_CHECK_VERSION (3, 0, 0) gtk_icon_size_lookup (GTK_ICON_SIZE_DIALOG, NULL, &size); pix = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "gtk-save", size, 0, NULL); -#else - pix = gtk_widget_render_icon (w, - GTK_STOCK_SAVE, - GTK_ICON_SIZE_DIALOG, - NULL); -#endif icons = g_list_append (icons, pix); } if (i % 3) { -#if GTK_CHECK_VERSION (3, 0, 0) gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, NULL, &size); pix = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (), "gtk-save", size, 0, NULL); -#else - pix = gtk_widget_render_icon (w, - GTK_STOCK_SAVE, - GTK_ICON_SIZE_MENU, - NULL); -#endif icons = g_list_append (icons, pix); } |