[anjuta] libanjuta: Fix for latest gdk deprecations
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: Fix for latest gdk deprecations
- Date: Mon, 27 Dec 2010 13:55:55 +0000 (UTC)
commit c252abeb1e9564ca8685c2a3fd00c749a0718007
Author: Johannes Schmid <jhs gnome org>
Date: Sun Dec 26 13:23:58 2010 +0100
libanjuta: Fix for latest gdk deprecations
gdk_spawn_() is replaced with g_spawn_*_async()
libanjuta/anjuta-utils.c | 4 +---
libanjuta/resources.c | 3 +--
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libanjuta/anjuta-utils.c b/libanjuta/anjuta-utils.c
index 9b8dd7e..c215ad8 100644
--- a/libanjuta/anjuta-utils.c
+++ b/libanjuta/anjuta-utils.c
@@ -1862,7 +1862,6 @@ anjuta_util_help_display (GtkWidget *parent,
{
GError *error = NULL;
- GdkScreen *screen;
gchar *command;
const gchar *lang;
const gchar * const *langs;
@@ -1900,8 +1899,7 @@ anjuta_util_help_display (GtkWidget *parent,
command = g_strconcat ("gnome-help ghelp://", uri, NULL);
g_free (uri);
- screen = gtk_widget_get_screen (GTK_WIDGET (parent));
- gdk_spawn_command_line_on_screen (screen, command, &error);
+ g_spawn_command_line_async (command, &error);
if (error != NULL)
{
g_warning ("Error executing help application: %s",
diff --git a/libanjuta/resources.c b/libanjuta/resources.c
index 97d50c1..a915b5a 100644
--- a/libanjuta/resources.c
+++ b/libanjuta/resources.c
@@ -291,6 +291,5 @@ anjuta_res_url_show (const gchar *url)
open[1] = (gchar *)url;
open[2] = NULL;
- gdk_spawn_on_screen (gdk_screen_get_default (), NULL, open, NULL,
- G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
+ g_spawn_async (NULL, open, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]