svnno****@sourc*****
svnno****@sourc*****
Fri Mar 23 15:06:20 JST 2007
Revision: 2979 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=2979 Author: ikezoe Date: 2007-03-23 15:06:19 +0900 (Fri, 23 Mar 2007) Log Message: ----------- * src/prefs_ui/prefs_font.c: Use kz_embed_new("gecko") to obtain KzEmbedPrefs. FIXME! Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/prefs_ui/prefs_font.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-03-23 05:36:40 UTC (rev 2978) +++ kazehakase/trunk/ChangeLog 2007-03-23 06:06:19 UTC (rev 2979) @@ -9,6 +9,8 @@ mozilla preferences to KzProfile. * src/kz-embed-prefs.[ch], module/embed/gecko/kz-gecko-embed.cpp: Removed needless functions. + * src/prefs_ui/prefs_font.c: Use kz_embed_new("gecko") to obtain + KzEmbedPrefs. FIXME! 2007-03-23 Kouhei Sutou <kou****@cozmi*****> Modified: kazehakase/trunk/src/prefs_ui/prefs_font.c =================================================================== --- kazehakase/trunk/src/prefs_ui/prefs_font.c 2007-03-23 05:36:40 UTC (rev 2978) +++ kazehakase/trunk/src/prefs_ui/prefs_font.c 2007-03-23 06:06:19 UTC (rev 2979) @@ -23,6 +23,7 @@ #include <string.h> #include <glib/gi18n.h> #include "kz-embed-prefs.h" +#include "kz-embed.h" #include "kazehakase.h" #include "gtk-utils.h" @@ -216,16 +217,18 @@ gchar *default_font = NULL; GtkListStore *store; gint select = 0, i = 0; - KzEmbedPrefs *embed_prefs = NULL; + KzEmbedPrefs *embed_prefs = KZ_EMBED_PREFS(kz_embed_new("gecko")); /* remove old list */ store = GTK_LIST_STORE(gtk_combo_box_get_model(combo)); gtk_list_store_clear(store); kz_embed_prefs_get_font_list(embed_prefs, lang, type, - &fonts, &all_fonts, - &default_font); + &fonts, &all_fonts, + &default_font); + gtk_widget_destroy(GTK_WIDGET(embed_prefs)); + if (!fonts) return; use_font = font && *font ? font : default_font;