diff options
author | monsta <[email protected]> | 2016-11-23 18:15:54 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-23 18:15:54 +0300 |
commit | ae5f4711a21508a70d7123dbc0efb610af1289a2 (patch) | |
tree | 54d4a9de3b092aa772ed8799fcf30e11e19ff93f /libdocument/ev-document-misc.c | |
parent | 7884bbe50fe8b8c26e68b8077c18047861c2dd0c (diff) | |
download | atril-ae5f4711a21508a70d7123dbc0efb610af1289a2.tar.bz2 atril-ae5f4711a21508a70d7123dbc0efb610af1289a2.tar.xz |
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require caja >= 1.17.1
Diffstat (limited to 'libdocument/ev-document-misc.c')
-rw-r--r-- | libdocument/ev-document-misc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c index 6f760270..1afa1d77 100644 --- a/libdocument/ev-document-misc.c +++ b/libdocument/ev-document-misc.c @@ -140,7 +140,6 @@ ev_document_misc_paint_one_page (cairo_t *cr, gboolean highlight, gboolean inverted_colors) { -#if GTK_CHECK_VERSION (3, 0, 0) GtkStyleContext *context = gtk_widget_get_style_context (widget); GtkStateFlags state = gtk_widget_get_state_flags (widget); GdkRGBA fg, bg, shade_bg; @@ -157,12 +156,6 @@ ev_document_misc_paint_one_page (cairo_t *cr, gtk_symbolic_color_unref (c2); gdk_cairo_set_source_rgba (cr, highlight ? &fg : &shade_bg); -#else - GtkStyle *style = gtk_widget_get_style (widget); - GtkStateType state = gtk_widget_get_state (widget); - - gdk_cairo_set_source_color (cr, highlight ? &style->text[state] : &style->dark[state]); -#endif gdk_cairo_rectangle (cr, area); cairo_fill (cr); @@ -177,11 +170,7 @@ ev_document_misc_paint_one_page (cairo_t *cr, area->height - (border->top + border->bottom)); cairo_fill (cr); -#if GTK_CHECK_VERSION (3, 0, 0) gdk_cairo_set_source_rgba (cr, &bg); -#else - gdk_cairo_set_source_color (cr, &style->mid[state]); -#endif cairo_rectangle (cr, area->x, area->y + area->height - (border->bottom - border->top), @@ -426,7 +415,6 @@ ev_document_misc_format_date (GTime utime) return g_locale_to_utf8 (s, -1, NULL, NULL, NULL); } -#if GTK_CHECK_VERSION(3, 0, 0) void ev_document_misc_get_pointer_position (GtkWidget *widget, gint *x, @@ -468,5 +456,3 @@ ev_document_misc_get_pointer_position (GtkWidget *widget, if (y) *y -= allocation.y; } -#endif - |