Compatibility fix for Gtk+ < 2.8

This commit is contained in:
Pierre Pronchery 2012-06-26 22:08:29 +00:00
parent afb64d4865
commit d9aafd3076
2 changed files with 10 additions and 0 deletions

View File

@ -174,8 +174,13 @@ static const DesktopMenu _menu_view[] =
{ N_("Normal size"), G_CALLBACK(on_view_normal_size),
"zoom-original", GDK_CONTROL_MASK, GDK_KEY_0 },
{ "", NULL, NULL, 0, 0 },
#if GTK_CHECK_VERSION(2, 8, 0)
{ N_("_Fullscreen"), G_CALLBACK(on_view_fullscreen),
GTK_STOCK_FULLSCREEN, 0, GDK_KEY_F11 },
#else
{ N_("_Fullscreen"), G_CALLBACK(on_view_fullscreen), NULL, 0,
GDK_KEY_F11 },
#endif
{ "", NULL, NULL, 0, 0 },
{ N_("_Refresh"), G_CALLBACK(on_view_refresh), GTK_STOCK_REFRESH,
GDK_CONTROL_MASK, GDK_KEY_R },

View File

@ -123,8 +123,13 @@ static const DesktopMenu _menu_file[] =
static const DesktopMenu _menu_view[] =
{
#if GTK_CHECK_VERSION(2, 8, 0)
{ N_("_Fullscreen"), G_CALLBACK(_helper_on_view_fullscreen),
GTK_STOCK_FULLSCREEN, 0, GDK_KEY_F11 },
#else
{ N_("_Fullscreen"), G_CALLBACK(_helper_on_view_fullscreen), NULL, 0,
GDK_KEY_F11 },
#endif
{ NULL, NULL, NULL, 0, 0 }
};