2004-02-06 Hans Breuer <hans@breuer.org>
commita3583b75a8d80e26de77cbccab4c962cc81039c3
authorhans <hans>
Sat, 7 Feb 2004 05:17:20 +0000 (7 05:17 +0000)
committerhans <hans>
Sat, 7 Feb 2004 05:17:20 +0000 (7 05:17 +0000)
tree1545de40190c07934a6af53af9470e531fd5fdfa
parent1d115159f087e199fc695a75ef3c8bd70c0b55ce
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 ;-)
ChangeLog
app/interface.c
lib/dia_xml.c
lib/dia_xml.h
lib/libdia.def
lib/widgets.c
lib/widgets.h
objects/standard/image.c