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
This commit is contained in:
Enrico Tröger 2009-05-11 15:57:02 +00:00
parent 035d6c3e22
commit 23fc3ef0d7
2 changed files with 4 additions and 3 deletions

View File

@ -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 <enrico(dot)troeger(at)uvena(dot)de>

View File

@ -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));