gnome-commander r2453 - in branches/gcmd-1-3: . doc/C src



Author: epiotr
Date: Mon Feb  9 19:39:38 2009
New Revision: 2453
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2453&view=rev

Log:
Fixed problem #570727 (usage of deprecated gnome_url_show)

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/NEWS
   branches/gcmd-1-3/doc/C/gnome-commander.xml
   branches/gcmd-1-3/src/gnome-cmd-user-actions.cc

Modified: branches/gcmd-1-3/NEWS
==============================================================================
--- branches/gcmd-1-3/NEWS	(original)
+++ branches/gcmd-1-3/NEWS	Mon Feb  9 19:39:38 2009
@@ -11,6 +11,7 @@
  * Fixed problem #554598 (GNOME Goal: LINGUAS)
  * Fixed problem #556664 (bookmarks can not be saved for mounted devices)
  * Fixed problem #567404 (crash when INSERT pressed over subdir)
+ * Fixed problem #570727 (usage of deprecated gnome_url_show)
  * Fixed problem with setting equal pane size in horizontal mode
 
 New features:

Modified: branches/gcmd-1-3/doc/C/gnome-commander.xml
==============================================================================
--- branches/gcmd-1-3/doc/C/gnome-commander.xml	(original)
+++ branches/gcmd-1-3/doc/C/gnome-commander.xml	Mon Feb  9 19:39:38 2009
@@ -5894,6 +5894,9 @@
                             <para>Fixed problem #567404 (crash when INSERT pressed over subdir)</para>
                         </listitem>
                         <listitem>
+                            <para>Fixed problem #570727 (usage of deprecated gnome_url_show)</para>
+                        </listitem>
+                        <listitem>
                             <para>Fixed problem with setting equal pane size in horizontal mode</para>
                         </listitem>
                     </itemizedlist>

Modified: branches/gcmd-1-3/src/gnome-cmd-user-actions.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-user-actions.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-user-actions.cc	Mon Feb  9 19:39:38 2009
@@ -1568,8 +1568,13 @@
 {
     GError *error = NULL;
 
+#if GTK_CHECK_VERSION (2, 14, 0)
+    if (!gtk_show_uri (NULL, "http://www.nongnu.org/gcmd/";, GDK_CURRENT_TIME, &error))
+        gnome_cmd_error_message (_("There was an error opening home page."), error);
+#else
     if (!gnome_url_show ("http://www.nongnu.org/gcmd/";, &error))
         gnome_cmd_error_message (_("There was an error opening home page."), error);
+#endif
 }
 
 
@@ -1577,8 +1582,13 @@
 {
     GError *error = NULL;
 
+#if GTK_CHECK_VERSION (2, 14, 0)
+    if (!gtk_show_uri (NULL, "http://bugzilla.gnome.org/browse.cgi?product=gnome-commander";, GDK_CURRENT_TIME, &error))
+        gnome_cmd_error_message (_("There was an error reporting problem."), error);
+#else
     if (!gnome_url_show("http://bugzilla.gnome.org/browse.cgi?product=gnome-commander";, &error))
         gnome_cmd_error_message (_("There was an error reporting problem."), error);
+#endif
 }
 
 



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