pidgin/gtkutils.c

branch
cpw.rekkanoryo.prefs_window
changeset 28908
d8538334b167
parent 28878
ad51dac11c42
child 29197
d7af2c5dedc1
child 29655
c24e3b7f75fb
equal deleted inserted replaced
28907:ad390799fb64 28908:d8538334b167
103 }; 103 };
104 104
105 void 105 void
106 pidgin_setup_imhtml(GtkWidget *imhtml) 106 pidgin_setup_imhtml(GtkWidget *imhtml)
107 { 107 {
108 PangoFontDescription *desc = NULL;
108 g_return_if_fail(imhtml != NULL); 109 g_return_if_fail(imhtml != NULL);
109 g_return_if_fail(GTK_IS_IMHTML(imhtml)); 110 g_return_if_fail(GTK_IS_IMHTML(imhtml));
110 111
111 pidgin_themes_smiley_themeize(imhtml); 112 pidgin_themes_smiley_themeize(imhtml);
112 113
113 gtk_imhtml_set_funcs(GTK_IMHTML(imhtml), &gtkimhtml_cbs); 114 gtk_imhtml_set_funcs(GTK_IMHTML(imhtml), &gtkimhtml_cbs);
114 115
116 #ifdef _WIN32
117 if (!purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/use_theme_font")) {
118 const char *font = purple_prefs_get_string(PIDGIN_PREFS_ROOT "/conversations/custom_font");
119 desc = pango_font_description_from_string(font);
120 }
121 #endif
122
123 if (desc) {
124 gtk_widget_modify_font(imhtml, desc);
125 pango_font_description_free(desc);
126 }
115 } 127 }
116 128
117 static 129 static
118 void pidgin_window_init(GtkWindow *wnd, const char *title, guint border_width, const char *role, gboolean resizable) 130 void pidgin_window_init(GtkWindow *wnd, const char *title, guint border_width, const char *role, gboolean resizable)
119 { 131 {

mercurial