bug-buddy r2724 - in trunk: . src



Author: cosimoc
Date: Thu Sep 25 14:42:33 2008
New Revision: 2724
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2724&view=rev

Log:
2008-09-25  Cosimo Cecchi  <cosimoc gnome org>

	* src/bug-buddy.c: (link_callback):
	Drop the check on GTK_VERSION now that we require GTK+ 2.14.0.


Modified:
   trunk/ChangeLog
   trunk/src/bug-buddy.c

Modified: trunk/src/bug-buddy.c
==============================================================================
--- trunk/src/bug-buddy.c	(original)
+++ trunk/src/bug-buddy.c	Thu Sep 25 14:42:33 2008
@@ -392,7 +392,6 @@
 link_callback (GtkLinkButton *button, gpointer user_data)
 {
 	const gchar *link = gtk_link_button_get_uri (button);
-#if GTK_CHECK_VERSION (2,13,0)
 	GdkAppLaunchContext *context;
 
 	context = gdk_app_launch_context_new ();
@@ -404,10 +403,7 @@
 	if (!g_app_info_launch_default_for_uri (link,
 						G_APP_LAUNCH_CONTEXT (context),
 						NULL))
-#else
-	if (!g_app_info_launch_default_for_uri (link, NULL, NULL))
-#endif
-    {
+	{
 		char *text;
 
 		text = g_markup_printf_escaped (_("Bug Buddy was unable to view the link \"%s\"\n"), link);
@@ -415,9 +411,7 @@
 		g_free (text);
 	}
 
-#if GTK_CHECK_VERSION (2,13,0)
 	g_object_unref (context);
-#endif
 
 	return;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]