From 23fc3ef0d7e48630ba82e494f2c81920208c6ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Mon, 11 May 2009 15:57:02 +0000 Subject: [PATCH] Remove unnecessary call to g_intern_string() to fix build with GLib 2.8 (closes #2790051). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3782 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 3 +++ src/dialogs.c | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96214089..34f96af6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ * src/utils.c: Use plain old fwrite() in utils_write_file(). g_file_set_contents() is only used when explicitly requested. + * src/dialogs.c: + Remove unnecessary call to g_intern_string() to fix build with + GLib 2.8 (closes #2790051). 2009-05-10 Enrico Tröger diff --git a/src/dialogs.c b/src/dialogs.c index 4e49ed12..83dd8eca 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -109,13 +109,11 @@ on_file_open_dialog_response (GtkDialog *dialog, static void on_file_open_notify(GObject *filechooser, GParamSpec *pspec, gpointer data) { - const gchar *name; GValue *value; - name = g_intern_string(pspec->name); value = g_new0(GValue, 1); g_value_init(value, pspec->value_type); - g_object_get_property(filechooser, name, value); + g_object_get_property(filechooser, pspec->name, value); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON( ui_lookup_widget(GTK_WIDGET(filechooser), "check_hidden")), g_value_get_boolean(value));