diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-29 09:32:15 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-29 09:32:15 +0800 |
commit | dc1344cd020b7c210a0777ed965397922ce1f9bf (patch) | |
tree | c2683536bb6524facfe8dc98454bbc1096230cd2 | |
parent | 31b57ed0383b2ea225195d4b72a872f7f2d93163 (diff) | |
download | gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.tar gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.tar.gz gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.tar.bz2 gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.tar.lz gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.tar.xz gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.tar.zst gsoc2013-evolution-dc1344cd020b7c210a0777ed965397922ce1f9bf.zip |
Bump gtk+-2.0 requirement to 2.22.0.
Remove backward-compatibility hacks for older GTK+ versions.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | e-util/gtk-compat.h | 176 | ||||
-rw-r--r-- | smclient/eggdesktopfile.c | 8 | ||||
-rw-r--r-- | widgets/misc/e-import-assistant.c | 7 |
4 files changed, 1 insertions, 192 deletions
diff --git a/configure.ac b/configure.ac index 6b47460a5d..af2ac94daa 100644 --- a/configure.ac +++ b/configure.ac @@ -98,7 +98,7 @@ else LIBEDATASERVERUI="libedataserverui-1.2" GTK="gtk+-2.0" - gtk_minimum_version="2.20.0" + gtk_minimum_version="2.22.0" GAIL="gail" gail_minimum_version="1.9.0" diff --git a/e-util/gtk-compat.h b/e-util/gtk-compat.h index 0635fd5246..786cc04721 100644 --- a/e-util/gtk-compat.h +++ b/e-util/gtk-compat.h @@ -5,182 +5,6 @@ /* Provide a GTK+ compatibility layer. */ -#if !GTK_CHECK_VERSION (2,21,8) - -#define GDK_KEY_3270_BackTab GDK_3270_BackTab -#define GDK_KEY_3270_Enter GDK_3270_Enter -#define GDK_KEY_BackSpace GDK_BackSpace -#define GDK_KEY_Caps_Lock GDK_Caps_Lock -#define GDK_KEY_Clear GDK_Clear -#define GDK_KEY_Delete GDK_Delete -#define GDK_KEY_Down GDK_Down -#define GDK_KEY_End GDK_End -#define GDK_KEY_Escape GDK_Escape -#define GDK_KEY_Home GDK_Home -#define GDK_KEY_ISO_Enter GDK_ISO_Enter -#define GDK_KEY_ISO_Left_Tab GDK_ISO_Left_Tab -#define GDK_KEY_ISO_Lock GDK_ISO_Lock -#define GDK_KEY_Insert GDK_Insert -#define GDK_KEY_Left GDK_Left -#define GDK_KEY_Page_Down GDK_Page_Down -#define GDK_KEY_Page_Up GDK_Page_Up -#define GDK_KEY_Return GDK_Return -#define GDK_KEY_Right GDK_Right -#define GDK_KEY_Scroll_Lock GDK_Scroll_Lock -#define GDK_KEY_Shift_Lock GDK_Shift_Lock -#define GDK_KEY_Sys_Req GDK_Sys_Req -#define GDK_KEY_Tab GDK_Tab -#define GDK_KEY_Up GDK_Up -#define GDK_KEY_VoidSymbol GDK_VoidSymbol -#define GDK_KEY_backslash GDK_backslash -#define GDK_KEY_bracketleft GDK_bracketleft -#define GDK_KEY_bracketright GDK_bracketright -#define GDK_KEY_comma GDK_comma -#define GDK_KEY_equal GDK_equal -#define GDK_KEY_exclam GDK_exclam -#define GDK_KEY_minus GDK_minus -#define GDK_KEY_period GDK_period -#define GDK_KEY_plus GDK_plus -#define GDK_KEY_space GDK_space -#define GDK_KEY_underscore GDK_underscore - -#define GDK_KEY_KP_0 GDK_KP_0 -#define GDK_KEY_KP_1 GDK_KP_1 -#define GDK_KEY_KP_2 GDK_KP_2 -#define GDK_KEY_KP_3 GDK_KP_3 -#define GDK_KEY_KP_4 GDK_KP_4 -#define GDK_KEY_KP_5 GDK_KP_5 -#define GDK_KEY_KP_6 GDK_KP_6 -#define GDK_KEY_KP_7 GDK_KP_7 -#define GDK_KEY_KP_8 GDK_KP_8 -#define GDK_KEY_KP_9 GDK_KP_9 -#define GDK_KEY_KP_Add GDK_KP_Add -#define GDK_KEY_KP_Decimal GDK_KP_Decimal -#define GDK_KEY_KP_Delete GDK_KP_Delete -#define GDK_KEY_KP_Divide GDK_KP_Divide -#define GDK_KEY_KP_Down GDK_KP_Down -#define GDK_KEY_KP_End GDK_KP_End -#define GDK_KEY_KP_Enter GDK_KP_Enter -#define GDK_KEY_KP_Equal GDK_KP_Equal -#define GDK_KEY_KP_Home GDK_KP_Home -#define GDK_KEY_KP_Insert GDK_KP_Insert -#define GDK_KEY_KP_Left GDK_KP_Left -#define GDK_KEY_KP_Multiply GDK_KP_Multiply -#define GDK_KEY_KP_Page_Down GDK_KP_Page_Down -#define GDK_KEY_KP_Page_Up GDK_KP_Page_Up -#define GDK_KEY_KP_Right GDK_KP_Right -#define GDK_KEY_KP_Space GDK_KP_Space -#define GDK_KEY_KP_Subtract GDK_KP_Subtract -#define GDK_KEY_KP_Tab GDK_KP_Tab -#define GDK_KEY_KP_Up GDK_KP_Up - -#define GDK_KEY_0 GDK_0 -#define GDK_KEY_1 GDK_1 -#define GDK_KEY_2 GDK_2 -#define GDK_KEY_3 GDK_3 -#define GDK_KEY_4 GDK_4 -#define GDK_KEY_5 GDK_5 -#define GDK_KEY_6 GDK_6 -#define GDK_KEY_7 GDK_7 -#define GDK_KEY_8 GDK_8 -#define GDK_KEY_9 GDK_9 -#define GDK_KEY_a GDK_a -#define GDK_KEY_b GDK_b -#define GDK_KEY_c GDK_c -#define GDK_KEY_d GDK_d -#define GDK_KEY_e GDK_e -#define GDK_KEY_f GDK_f -#define GDK_KEY_g GDK_g -#define GDK_KEY_h GDK_h -#define GDK_KEY_i GDK_i -#define GDK_KEY_j GDK_j -#define GDK_KEY_k GDK_k -#define GDK_KEY_l GDK_l -#define GDK_KEY_m GDK_m -#define GDK_KEY_n GDK_n -#define GDK_KEY_o GDK_o -#define GDK_KEY_p GDK_p -#define GDK_KEY_q GDK_q -#define GDK_KEY_r GDK_r -#define GDK_KEY_s GDK_s -#define GDK_KEY_t GDK_t -#define GDK_KEY_u GDK_u -#define GDK_KEY_v GDK_v -#define GDK_KEY_w GDK_w -#define GDK_KEY_x GDK_x -#define GDK_KEY_y GDK_y -#define GDK_KEY_z GDK_z -#define GDK_KEY_A GDK_A -#define GDK_KEY_B GDK_B -#define GDK_KEY_C GDK_C -#define GDK_KEY_D GDK_D -#define GDK_KEY_E GDK_E -#define GDK_KEY_F GDK_F -#define GDK_KEY_G GDK_G -#define GDK_KEY_H GDK_H -#define GDK_KEY_I GDK_I -#define GDK_KEY_J GDK_J -#define GDK_KEY_K GDK_K -#define GDK_KEY_L GDK_L -#define GDK_KEY_M GDK_M -#define GDK_KEY_N GDK_N -#define GDK_KEY_O GDK_O -#define GDK_KEY_P GDK_P -#define GDK_KEY_Q GDK_Q -#define GDK_KEY_R GDK_R -#define GDK_KEY_S GDK_S -#define GDK_KEY_T GDK_T -#define GDK_KEY_U GDK_U -#define GDK_KEY_V GDK_V -#define GDK_KEY_W GDK_W -#define GDK_KEY_X GDK_X -#define GDK_KEY_Y GDK_Y -#define GDK_KEY_Z GDK_Z - -#define GDK_KEY_F10 GDK_F10 -#define GDK_KEY_F14 GDK_F14 -#define GDK_KEY_F16 GDK_F16 -#define GDK_KEY_F18 GDK_F18 -#define GDK_KEY_F20 GDK_F20 - -#define GDK_KEY_Alt_L GDK_Alt_L -#define GDK_KEY_Alt_R GDK_Alt_R - -#define GDK_KEY_Control_L GDK_Control_L -#define GDK_KEY_Control_R GDK_Control_R - -#define GDK_KEY_Hyper_L GDK_Hyper_L -#define GDK_KEY_Hyper_R GDK_Hyper_R - -#define GDK_KEY_Meta_L GDK_Meta_L -#define GDK_KEY_Meta_R GDK_Meta_R - -#define GDK_KEY_Shift_L GDK_Shift_L -#define GDK_KEY_Shift_R GDK_Shift_R - -#define GDK_KEY_Super_L GDK_Super_L -#define GDK_KEY_Super_R GDK_Super_R - -#endif - -#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 21) \ - || (GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION < 1) - -#define gdk_drag_context_get_actions(context) (context)->actions -#define gdk_drag_context_get_suggested_action(context) (context)->suggested_action -#define gdk_drag_context_get_selected_action(context) (context)->action -#define gdk_drag_context_list_targets(context) (context)->targets -#define gdk_visual_get_depth(visual) (visual)->depth - -#define gtk_accessible_get_widget(accessible) \ - (GTK_ACCESSIBLE (accessible)->widget) -#endif - -#if GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION == 21 && GTK_MICRO_VERSION == 1 -#define gdk_drag_context_get_selected_action(context) \ - gdk_drag_context_get_action (context) -#endif - #if GTK_CHECK_VERSION (2,90,5) /* Recreate GdkRegion until we drop GTK2 compatibility. */ diff --git a/smclient/eggdesktopfile.c b/smclient/eggdesktopfile.c index f264a93cdb..b546978d05 100644 --- a/smclient/eggdesktopfile.c +++ b/smclient/eggdesktopfile.c @@ -909,7 +909,6 @@ parse_link (EggDesktopFile *desktop_file, return TRUE; } -#if GTK_CHECK_VERSION (2, 12, 0) static gchar * start_startup_notification (GdkDisplay *display, EggDesktopFile *desktop_file, @@ -1020,7 +1019,6 @@ set_startup_notification_timeout (GdkDisplay *display, g_timeout_add_seconds (EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH, startup_notification_timeout, sn_data); } -#endif /* GTK 2.12 */ static GPtrArray * array_putenv (GPtrArray *env, gchar *variable) @@ -1207,7 +1205,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file, } g_free (command); -#if GTK_CHECK_VERSION (2, 12, 0) startup_id = start_startup_notification (display, desktop_file, argv[0], screen_num, workspace, launch_time); @@ -1218,9 +1215,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file, env = array_putenv (env, startup_id_env); g_free (startup_id_env); } -#else - startup_id = NULL; -#endif /* GTK 2.12 */ if (env != NULL) g_ptr_array_add (env, NULL); @@ -1238,7 +1232,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file, if (startup_id) { -#if GTK_CHECK_VERSION (2, 12, 0) if (current_success) { set_startup_notification_timeout (display, startup_id); @@ -1249,7 +1242,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file, g_free (startup_id); } else -#endif /* GTK 2.12 */ g_free (startup_id); } else if (ret_startup_id) diff --git a/widgets/misc/e-import-assistant.c b/widgets/misc/e-import-assistant.c index 6a1e1f4787..9ff1a5c391 100644 --- a/widgets/misc/e-import-assistant.c +++ b/widgets/misc/e-import-assistant.c @@ -760,17 +760,10 @@ prepare_progress_page (GtkAssistant *assistant, priv = E_IMPORT_ASSISTANT_GET_PRIVATE (assistant); page = &priv->selection_page; -#if GTK_CHECK_VERSION(2,21,2) /* Because we're a GTK_ASSISTANT_PAGE_PROGRESS, this will * prevent the assistant window from being closed via window * manager decorations while importing. */ gtk_assistant_commit (assistant); -#else - /* Hide all GtkAssistant buttons. */ - gtk_widget_hide (assistant->back); - gtk_widget_hide (assistant->forward); - gtk_widget_hide (assistant->cancel); -#endif /* Install a custom "Cancel Import" button. */ cancel_button = gtk_button_new_with_mnemonic (_("_Cancel Import")); |