X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=libdocument%2Fev-attachment.c;h=9f9f4fed534f4cbe04c65fbf9a4fec077fe4cd2e;hb=e769474337c9a6ffdaed2327056e8de2f7ca9ee4;hp=0e9653dc4312910c61e13fc166398a2c5642cc89;hpb=43f607bda8eef3648f018e433647172603ea1a7f;p=evince.git diff --git a/libdocument/ev-attachment.c b/libdocument/ev-attachment.c index 0e9653dc..9f9f4fed 100644 --- a/libdocument/ev-attachment.c +++ b/libdocument/ev-attachment.c @@ -14,7 +14,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include @@ -354,12 +354,11 @@ ev_attachment_launch_app (EvAttachment *attachment, g_assert (G_IS_APP_INFO (attachment->priv->app)); files = g_list_prepend (files, attachment->priv->tmp_file); - -#if GTK_CHECK_VERSION (2, 14, 0) + context = G_APP_LAUNCH_CONTEXT (gdk_app_launch_context_new ()); gdk_app_launch_context_set_screen (GDK_APP_LAUNCH_CONTEXT (context), screen); gdk_app_launch_context_set_timestamp (GDK_APP_LAUNCH_CONTEXT (context), timestamp); -#endif + result = g_app_info_launch (attachment->priv->app, files, context, &ioerror);