summaryrefslogtreecommitdiff
path: root/lib/dia_xml.h
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2004-02-06 22:17:26 +0000
committerHans Breuer <hans@src.gnome.org>2004-02-06 22:17:26 +0000
commitd19053dcda8bddd7d43c02f3cceeb79e00bd08f6 (patch)
treea000bacadb5c6a0d8a432cb7509670980a0322e0 /lib/dia_xml.h
parent1486dbdf7d21c2fefab6f8b00494a1871243b538 (diff)
downloaddia-d19053dcda8bddd7d43c02f3cceeb79e00bd08f6.tar.xz
don't use gtk_drawing_area_size() to avoid the defaut size being also the
2004-02-06 Hans Breuer <hans@breuer.org> * app/interface.c : don't use gtk_drawing_area_size() to avoid the defaut size being also the minimum size. Instead use gtk_window_set_default_size() on the display shell. Fixes #130982. [fixing #131210, but umlauts in the 'main' filename still not really supported on systems where filesystem encoding != utf8 (Problems with recent file menu and window title)] * lib/dia_xml.[hc] : add data_filename() and data_add_filename() to deal with possible differnces in filename encodings, see g_filename_<to|from>_utf8() * objects/standard/image.c : use them. * lib/widgets.c : handle possible encoding difference here, too. Also get rid of most warnings by using const and GTK casts where appropriate; one wrong cast (probably causing a crash) was found/fixed by this - the remaining give a hint on finally leaking FontSelectorEntry. * lib/widgets.[hc] : hide _DiaFileSelector and *Class in .c. Modified dia_file_selector_<get|set>_file to behave like the respective Gtk functions do : encoding- and const-wise ;-)
Diffstat (limited to 'lib/dia_xml.h')
-rw-r--r--lib/dia_xml.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dia_xml.h b/lib/dia_xml.h
index 3c7c1797..784c324d 100644
--- a/lib/dia_xml.h
+++ b/lib/dia_xml.h
@@ -62,6 +62,7 @@ void data_color(DataNode data, Color *col);
void data_point(DataNode data, Point *point);
void data_rectangle(DataNode data, Rectangle *rect);
char *data_string(DataNode data);
+char *data_filename(DataNode data);
DiaFont *data_font(DataNode data);
AttributeNode new_attribute(ObjectNode obj_node, const char *attrname);
@@ -75,6 +76,7 @@ void data_add_color(AttributeNode attr, const Color *col);
void data_add_point(AttributeNode attr, const Point *point);
void data_add_rectangle(AttributeNode attr, const Rectangle *rect);
void data_add_string(AttributeNode attr, const char *str);
+void data_add_filename(AttributeNode attr, const char *str);
void data_add_font(AttributeNode attr, const DiaFont *font);
DataNode data_add_composite(AttributeNode attr,
const char *type); /* can be NULL */