diff options
author | infirit <[email protected]> | 2015-09-16 13:01:09 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-16 13:54:53 +0200 |
commit | 59c218b6067263cb1667656a85a15483a01e8c5a (patch) | |
tree | 562b73c980845e37ee2b00ef811dac56071e66cc /src | |
parent | 1ea80cdee4c3824c9317473e60ca5b707e6c9602 (diff) | |
download | marco-59c218b6067263cb1667656a85a15483a01e8c5a.tar.bz2 marco-59c218b6067263cb1667656a85a15483a01e8c5a.tar.xz |
preview-widget: Small GTK_CHECK_VERSION cleanup
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/preview-widget.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ui/preview-widget.c b/src/ui/preview-widget.c index ea497e35..9138c6f5 100644 --- a/src/ui/preview-widget.c +++ b/src/ui/preview-widget.c @@ -103,19 +103,17 @@ meta_preview_class_init (MetaPreviewClass *class) gobject_class->finalize = meta_preview_finalize; - #if GTK_CHECK_VERSION(3, 0, 0) +#if GTK_CHECK_VERSION(3, 0, 0) widget_class->draw = meta_preview_draw; widget_class->get_preferred_width = meta_preview_get_preferred_width; widget_class->get_preferred_height = meta_preview_get_preferred_height; - #else - widget_class->expose_event = meta_preview_expose; - widget_class->size_request = meta_preview_size_request; - #endif - widget_class->size_allocate = meta_preview_size_allocate; -#if GTK_CHECK_VERSION(3, 0, 0) gtk_container_class_handle_border_width (GTK_CONTAINER_CLASS (class)); +#else + widget_class->expose_event = meta_preview_expose; + widget_class->size_request = meta_preview_size_request; #endif + widget_class->size_allocate = meta_preview_size_allocate; } static void @@ -443,9 +441,6 @@ meta_preview_expose (GtkWidget *widget, return GTK_WIDGET_CLASS (parent_class)->expose_event (widget, event); } -#endif - -#if !GTK_CHECK_VERSION (3, 0, 0) static void meta_preview_size_request (GtkWidget *widget, GtkRequisition *req) |