pidgin/plugins/pidginrc.c

changeset 17096
b38e5c5c934e
parent 16749
14a3fdc0aed7
child 17209
bfccb73d3ea1
equal deleted inserted replaced
17095:ee13fdcf6789 17096:b38e5c5c934e
59 static GtkWidget *widget_size_widgets[G_N_ELEMENTS(widget_size_prefs)]; 59 static GtkWidget *widget_size_widgets[G_N_ELEMENTS(widget_size_prefs)];
60 60
61 static const char *font_prefs[] = { 61 static const char *font_prefs[] = {
62 "/plugins/gtk/purplerc/font/*pidgin_conv_entry", 62 "/plugins/gtk/purplerc/font/*pidgin_conv_entry",
63 "/plugins/gtk/purplerc/font/*pidgin_conv_imhtml", 63 "/plugins/gtk/purplerc/font/*pidgin_conv_imhtml",
64 "/plugins/gtk/purplerc/font/*pidginlog_imhtml", 64 "/plugins/gtk/purplerc/font/*pidgin_log_imhtml",
65 "/plugins/gtk/purplerc/font/*pidginrequest_imhtml", 65 "/plugins/gtk/purplerc/font/*pidgin_request_imhtml",
66 "/plugins/gtk/purplerc/font/*pidginnotify_imhtml", 66 "/plugins/gtk/purplerc/font/*pidgin_notify_imhtml",
67 }; 67 };
68 static const char *font_prefs_set[] = { 68 static const char *font_prefs_set[] = {
69 "/plugins/gtk/purplerc/set/font/*pidgin_conv_entry", 69 "/plugins/gtk/purplerc/set/font/*pidgin_conv_entry",
70 "/plugins/gtk/purplerc/set/font/*pidgin_conv_imhtml", 70 "/plugins/gtk/purplerc/set/font/*pidgin_conv_imhtml",
71 "/plugins/gtk/purplerc/set/font/*pidginlog_imhtml", 71 "/plugins/gtk/purplerc/set/font/*pidgin_log_imhtml",
72 "/plugins/gtk/purplerc/set/font/*pidginrequest_imhtml", 72 "/plugins/gtk/purplerc/set/font/*pidgin_request_imhtml",
73 "/plugins/gtk/purplerc/set/font/*pidginnotify_imhtml", 73 "/plugins/gtk/purplerc/set/font/*pidgin_notify_imhtml",
74 }; 74 };
75 static const char *font_names[] = { 75 static const char *font_names[] = {
76 N_("Conversation Entry"), 76 N_("Conversation Entry"),
77 N_("Conversation History"), 77 N_("Conversation History"),
78 N_("Log Viewer"), 78 N_("Log Viewer"),
165 165
166 if (pref != NULL && strcmp(pref, "")) 166 if (pref != NULL && strcmp(pref, ""))
167 g_string_append_printf(style_string, 167 g_string_append_printf(style_string,
168 "style \"%s_style\"\n" 168 "style \"%s_style\"\n"
169 "{font_name = \"%s\"}\n" 169 "{font_name = \"%s\"}\n"
170 "widget \"%s\"" 170 "widget \"%s\" "
171 "style \"%s_style\"\n", 171 "style \"%s_style\"\n",
172 prefbase, pref, 172 prefbase, pref,
173 prefbase, prefbase); 173 prefbase, prefbase);
174 g_free(prefbase); 174 g_free(prefbase);
175 } 175 }
258 258
259 if (pref != NULL && strcmp(pref, "")) 259 if (pref != NULL && strcmp(pref, ""))
260 g_string_append_printf(style_string, 260 g_string_append_printf(style_string,
261 "style \"%s_style\"\n" 261 "style \"%s_style\"\n"
262 "{font_name = \"%s\"}\n" 262 "{font_name = \"%s\"}\n"
263 "widget \"%s\"" 263 "widget \"%s\" "
264 "style \"%s_style\"\n", 264 "style \"%s_style\"\n",
265 prefbase, pref, 265 prefbase, pref,
266 prefbase, prefbase); 266 prefbase, prefbase);
267 g_free(prefbase); 267 g_free(prefbase);
268 } 268 }

mercurial