summaryrefslogtreecommitdiff
path: root/gtk/gtkrc.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-08-24 02:31:20 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-08-24 02:31:20 +0000
commitf977168c41038b53559d6302efed68f4ed91cd21 (patch)
tree023ce3c0c31678a6bb4fb243251acd7911671200 /gtk/gtkrc.c
parenta8ea1bc42096ab0f0e52b139b756ff95d7e8c46e (diff)
downloadgdk-pixbuf-f977168c41038b53559d6302efed68f4ed91cd21.tar.gz
Fix problem where rc_file->directory wasn't always getting set. (#120549,
Sat Aug 23 21:40:18 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkrc.c (gtk_rc_context_parse_one_file): Fix problem where rc_file->directory wasn't always getting set. (#120549, Luis Villa)
Diffstat (limited to 'gtk/gtkrc.c')
-rw-r--r--gtk/gtkrc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c
index 0f4c6e01b..9de0ef632 100644
--- a/gtk/gtkrc.c
+++ b/gtk/gtkrc.c
@@ -779,9 +779,10 @@ gtk_rc_context_parse_one_file (GtkRcContext *context,
cwd = g_get_current_dir ();
rc_file->canonical_name = g_build_filename (cwd, rc_file->name, NULL);
- rc_file->directory = g_path_get_dirname (rc_file->canonical_name);
g_free (cwd);
}
+
+ rc_file->directory = g_path_get_dirname (rc_file->canonical_name);
}
/* If the file is already being parsed (recursion), do nothing