diff options
author | infirit <[email protected]> | 2015-07-15 15:32:31 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-07-15 15:32:31 +0200 |
commit | 7eb6a8115e676ca574a1e4c7f68d96515517b9d3 (patch) | |
tree | 836915d8e65e48227141e3c79fa5f8d27c543a90 /typing-break | |
parent | 2208d0af94aeb5b68d1209ad2b11cd46c14c8d23 (diff) | |
download | mate-control-center-7eb6a8115e676ca574a1e4c7f68d96515517b9d3.tar.bz2 mate-control-center-7eb6a8115e676ca574a1e4c7f68d96515517b9d3.tar.xz |
typing break: Remove forgotten bits
This should have been in 2208d0af94aeb5b68d1209ad2b11cd46c14c8d23
Diffstat (limited to 'typing-break')
-rw-r--r-- | typing-break/drw-utils.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/typing-break/drw-utils.c b/typing-break/drw-utils.c index f5ed7e3f..5c28db98 100644 --- a/typing-break/drw-utils.c +++ b/typing-break/drw-utils.c @@ -157,7 +157,6 @@ set_pixmap_background (GtkWidget *window) { GdkScreen *screen; GdkPixbuf *tmp_pixbuf, *pixbuf, *tile_pixbuf; - GdkPixmap *pixmap; GdkRectangle rect; GdkColor color; gint width, height; @@ -219,30 +218,13 @@ set_pixmap_background (GtkWidget *window) g_object_unref (tile_pixbuf); -#if GTK_CHECK_VERSION (3, 0, 0) cr = gdk_cairo_create (gtk_widget_get_window (window)); gdk_cairo_set_source_pixbuf (cr, tmp_pixbuf, 0, 0); cairo_paint (cr); -#else - pixmap = gdk_pixmap_new (gtk_widget_get_window (window), - width, - height, - -1); - - cr = gdk_cairo_create (pixmap); - gdk_cairo_set_source_pixbuf (cr, tmp_pixbuf, 0, 0); - cairo_paint (cr); - cairo_destroy (cr); -#endif g_object_unref (tmp_pixbuf); -#if GTK_CHECK_VERSION (3, 0, 0) cairo_destroy (cr); -#else - gdk_window_set_back_pixmap (gtk_widget_get_window (window), pixmap, FALSE); - g_object_unref (pixmap); -#endif } void |