From fe95c62b39dae4cb907addfba5c73bb847f1301d Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Sun, 7 Dec 2014 21:33:08 +0100 Subject: Bump minimum gtk version to 2.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That is the version available in RHEL 5. The configure change for telepathy has been changed for consistency only. Change-Id: I664901dd2bbcc75f6f6fb84940f3fa85d69f57dd Reviewed-on: https://gerrit.libreoffice.org/13369 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/unx/gtk/app/gtkinst.cxx | 12 ------------ vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 10 ---------- vcl/unx/gtk/window/gtksalframe.cxx | 7 ------- 3 files changed, 29 deletions(-) (limited to 'vcl') diff --git a/vcl/unx/gtk/app/gtkinst.cxx b/vcl/unx/gtk/app/gtkinst.cxx index c2f56aae9714..2165a1ed2e27 100644 --- a/vcl/unx/gtk/app/gtkinst.cxx +++ b/vcl/unx/gtk/app/gtkinst.cxx @@ -244,22 +244,10 @@ void GtkInstance::AddToRecentDocumentList(const OUString& rFileUrl, const OUStri sGtkURL = OString(g_uri); g_free(g_uri); } -#if GTK_CHECK_VERSION(2,10,0) GtkRecentManager *manager = gtk_recent_manager_get_default (); gtk_recent_manager_add_item (manager, sGtkURL.getStr()); (void)rMimeType; (void)rDocumentService; -#else - static getDefaultFnc sym_gtk_recent_manager_get_default = - (getDefaultFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_get_default" ); - - static addItemFnc sym_gtk_recent_manager_add_item = - (addItemFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_add_item"); - if (sym_gtk_recent_manager_get_default && sym_gtk_recent_manager_add_item) - sym_gtk_recent_manager_add_item(sym_gtk_recent_manager_get_default(), sGtkURL.getStr()); - else - X11SalInstance::AddToRecentDocumentList(rFileUrl, rMimeType, rDocumentService); -#endif } SalInfoPrinter* GtkInstance::CreateInfoPrinter( SalPrinterQueueInfo* pQueueInfo, diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index 3fad10ee150d..598005d9d567 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -4206,18 +4206,8 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings ) aStyleSet.SetToolbarIconSize( STYLE_TOOLBAR_ICONSIZE_LARGE ); -#if !GTK_CHECK_VERSION(2,9,0) - static cairo_font_options_t* (*gdk_screen_get_font_options)(GdkScreen*) = - (cairo_font_options_t*(*)(GdkScreen*))osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gdk_screen_get_font_options" ); - if( gdk_screen_get_font_options != NULL ) - { - const cairo_font_options_t* pNewOptions = gdk_screen_get_font_options( pScreen ); - aStyleSet.SetCairoFontOptions( pNewOptions ); - } -#else const cairo_font_options_t* pNewOptions = gdk_screen_get_font_options( pScreen ); aStyleSet.SetCairoFontOptions( pNewOptions ); -#endif // finally update the collected settings rSettings.SetStyleSettings( aStyleSet ); diff --git a/vcl/unx/gtk/window/gtksalframe.cxx b/vcl/unx/gtk/window/gtksalframe.cxx index 6f3688321278..f1065be1eaa3 100644 --- a/vcl/unx/gtk/window/gtksalframe.cxx +++ b/vcl/unx/gtk/window/gtksalframe.cxx @@ -97,13 +97,6 @@ #include -// make compile on gtk older than 2.10 -#if GTK_MINOR_VERSION < 10 -#define GDK_SUPER_MASK (1 << 26) -#define GDK_HYPER_MASK (1 << 27) -#define GDK_META_MASK (1 << 28) -#endif - #if GTK_CHECK_VERSION(3,0,0) #define IS_WIDGET_REALIZED gtk_widget_get_realized #define IS_WIDGET_MAPPED gtk_widget_get_mapped -- cgit