diff options
author | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-18 13:40:00 +0000 |
---|---|---|
committer | Ramiro Estrugo <ramiro@src.gnome.org> | 2000-10-18 13:40:00 +0000 |
commit | 7dfbaece521466dd7894ab6b5c7ae58b542171fe (patch) | |
tree | bd5d3ba3cba68ec30780654d110188a7f433c616 /src/nautilus-zoom-control.c | |
parent | 6fe9d6631d6eebafa1c01d8f26882d5b5797aa27 (diff) | |
download | nautilus-7dfbaece521466dd7894ab6b5c7ae58b542171fe.tar.gz |
Use gdk_fontset_load() instead of gdk_font_load() to make i18n work
* libnautilus-extensions/nautilus-font-factory.c:
(font_hash_node_lookup_with_insertion),
(nautilus_font_factory_get_fallback_font):
* libnautilus-extensions/nautilus-gdk-extensions.c:
(nautilus_get_largest_fitting_font), (nautilus_gdk_font_get_bold):
* libnautilus-extensions/nautilus-gtk-extensions.c:
(nautilus_gtk_widget_set_font_by_name):
* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
* src/nautilus-zoom-control.c: (draw_number):
Use gdk_fontset_load() instead of gdk_font_load() to make i18n
work better. Also marked some hard-coded fonts fot localization.
There is still an open bug on writing useful comments about these
for the localizers. Fixes bugs 3143 and 3144.
Thanks to Yukihiro Nakai <ynakai@redhat.com> for pointing these
problems out providing patches to fix them.
* src/nautilus-profiler.c: (window_print_button_callback),
(window_save_button_callback), (dump_dialog_new),
(dump_dialog_show):
Same as above plus mark some strings for localization and add
assertions to currently unimplemented functions.
Diffstat (limited to 'src/nautilus-zoom-control.c')
-rw-r--r-- | src/nautilus-zoom-control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-zoom-control.c b/src/nautilus-zoom-control.c index 5a0544d3c..e45354369 100644 --- a/src/nautilus-zoom-control.c +++ b/src/nautilus-zoom-control.c @@ -325,7 +325,7 @@ void draw_number (GtkWidget *widget, GdkRectangle *box) x += char_width; } } else { - label_font = gdk_font_load("-bitstream-courier-medium-r-normal-*-9-*-*-*-*-*-*-*"); + label_font = gdk_fontset_load (_("-bitstream-courier-medium-r-normal-*-9-*-*-*-*-*-*-*")); x = num_h_offset + ((widget->allocation.width - gdk_string_width(label_font, buffer)) >> 1); |