gnome-panel r11394 - trunk/gnome-panel



Author: vuntz
Date: Tue Dec  9 11:37:27 2008
New Revision: 11394
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11394&view=rev

Log:
2008-12-09  Vincent Untz  <vuntz gnome org>

	* panel-run-dialog.c: (panel_run_dialog_launch_command): Use
	gnome_desktop_prepend_terminal_to_vector() instead of
	gnome_prepend_terminal_to_vector(), to slowly get rid of libgnome


Modified:
   trunk/gnome-panel/ChangeLog
   trunk/gnome-panel/panel-run-dialog.c

Modified: trunk/gnome-panel/panel-run-dialog.c
==============================================================================
--- trunk/gnome-panel/panel-run-dialog.c	(original)
+++ trunk/gnome-panel/panel-run-dialog.c	Tue Dec  9 11:37:27 2008
@@ -29,6 +29,8 @@
 
 #include <config.h>
 
+#undef GNOME_DISABLE_DEPRECATED
+#undef GTK_DISABLE_DEPRECATED
 #include "panel-run-dialog.h"
 
 #include <string.h>
@@ -41,12 +43,14 @@
 #include <gio/gio.h>
 #include <gdk/gdkkeysyms.h>
 #include <glade/glade-xml.h>
-#include <libgnome/gnome-exec.h>
 #include <libgnome/gnome-util.h>
 #include <libgnomeui/gnome-entry.h>
 #include <gconf/gconf-client.h>
 #include <gmenu-tree.h>
 
+#define GNOME_DESKTOP_USE_UNSTABLE_API
+#include <libgnome/gnome-desktop-utils.h>
+
 #include <libpanel-util/panel-error.h>
 #include <libpanel-util/panel-glib.h>
 #include <libpanel-util/panel-keyfile.h>
@@ -308,7 +312,7 @@
 	screen = gtk_window_get_screen (GTK_WINDOW (dialog->run_dialog));	
 		
 	if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (dialog->terminal_checkbox)))
-		gnome_prepend_terminal_to_vector (&argc, &argv);
+		gnome_desktop_prepend_terminal_to_vector (&argc, &argv);
 		   
 	result = gdk_spawn_on_screen (screen,
 				      NULL, /* working directory */



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