gtkinst.cxx (9f62ea84) gtkinst.cxx (24c56ab9)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 217 unchanged lines hidden (view full) ---

226 rtl::OString sSystemUrl = rtl::OUStringToOString(sDecodedUri, aSystemEnc);
227 //Encode to an escaped ASCII-encoded URI
228 gchar *g_uri = g_filename_to_uri(sSystemUrl.getStr(), NULL, NULL);
229 sGtkURL = rtl::OString(g_uri);
230 g_free(g_uri);
231 }
232#if GTK_CHECK_VERSION(2,10,0)
233 GtkRecentManager *manager = gtk_recent_manager_get_default ();
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 217 unchanged lines hidden (view full) ---

226 rtl::OString sSystemUrl = rtl::OUStringToOString(sDecodedUri, aSystemEnc);
227 //Encode to an escaped ASCII-encoded URI
228 gchar *g_uri = g_filename_to_uri(sSystemUrl.getStr(), NULL, NULL);
229 sGtkURL = rtl::OString(g_uri);
230 g_free(g_uri);
231 }
232#if GTK_CHECK_VERSION(2,10,0)
233 GtkRecentManager *manager = gtk_recent_manager_get_default ();
234 gtk_recent_manager_add_item (manager, sGtkURL);
234 gtk_recent_manager_add_item( manager, sGtkURL.getStr());
235 (void)rMimeType;
236#else
237 static getDefaultFnc sym_gtk_recent_manager_get_default =
238 (getDefaultFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_get_default" );
239
240 static addItemFnc sym_gtk_recent_manager_add_item =
241 (addItemFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_add_item");
242 if (sym_gtk_recent_manager_get_default && sym_gtk_recent_manager_add_item)

--- 120 unchanged lines hidden ---
235 (void)rMimeType;
236#else
237 static getDefaultFnc sym_gtk_recent_manager_get_default =
238 (getDefaultFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_get_default" );
239
240 static addItemFnc sym_gtk_recent_manager_add_item =
241 (addItemFnc)osl_getAsciiFunctionSymbol( GetSalData()->m_pPlugin, "gtk_recent_manager_add_item");
242 if (sym_gtk_recent_manager_get_default && sym_gtk_recent_manager_add_item)

--- 120 unchanged lines hidden ---