SHA256
1
0
forked from pool/dia
dia/dia-diagtkrc.patch

30 lines
647 B
Diff

Index: dia-0.97/lib/dialib.c
===================================================================
--- dia-0.97.orig/lib/dialib.c
+++ dia-0.97/lib/dialib.c
@@ -27,6 +27,7 @@
#include <libxml/xmlerror.h>
#include "dialib.h"
+#include "dia_dirs.h"
#include "message.h"
#include "utils.h"
#include "dia_image.h"
@@ -104,12 +105,15 @@ libdia_init (guint flags)
stdprops_init();
if (flags & DIA_INTERACTIVE) {
+ char *diagtkrc;
dia_image_init();
gdk_rgb_init();
- gtk_rc_parse("diagtkrc");
+ diagtkrc = dia_config_filename("diagtkrc");
+ gtk_rc_parse(diagtkrc);
+ g_free(diagtkrc);
color_init();
}