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:
parent
035d6c3e22
commit
23fc3ef0d7
@ -7,6 +7,9 @@
|
|||||||
* src/utils.c:
|
* src/utils.c:
|
||||||
Use plain old fwrite() in utils_write_file(). g_file_set_contents()
|
Use plain old fwrite() in utils_write_file(). g_file_set_contents()
|
||||||
is only used when explicitly requested.
|
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>
|
2009-05-10 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||||
|
@ -109,13 +109,11 @@ on_file_open_dialog_response (GtkDialog *dialog,
|
|||||||
|
|
||||||
static void on_file_open_notify(GObject *filechooser, GParamSpec *pspec, gpointer data)
|
static void on_file_open_notify(GObject *filechooser, GParamSpec *pspec, gpointer data)
|
||||||
{
|
{
|
||||||
const gchar *name;
|
|
||||||
GValue *value;
|
GValue *value;
|
||||||
|
|
||||||
name = g_intern_string(pspec->name);
|
|
||||||
value = g_new0(GValue, 1);
|
value = g_new0(GValue, 1);
|
||||||
g_value_init(value, pspec->value_type);
|
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(
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(
|
||||||
ui_lookup_widget(GTK_WIDGET(filechooser), "check_hidden")), g_value_get_boolean(value));
|
ui_lookup_widget(GTK_WIDGET(filechooser), "check_hidden")), g_value_get_boolean(value));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user