Mercurial > audlegacy
changeset 3565:21601ce39fa1 trunk
let mainwin_othertext use xfont when cfg.mainwin_use_xfont is TRUE
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 18 Sep 2007 21:22:09 +0200 |
parents | 6e5104dcf645 |
children | 5c6994da98c3 |
files | src/audacious/ui_main.c src/audacious/ui_main.h src/audacious/ui_preferences.c |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/ui_main.c Tue Sep 18 14:07:22 2007 -0500 +++ b/src/audacious/ui_main.c Tue Sep 18 21:22:09 2007 +0200 @@ -135,11 +135,10 @@ static GtkWidget *mainwin_shuffle, *mainwin_repeat; GtkWidget *mainwin_eq, *mainwin_pl; -GtkWidget *mainwin_info; +GtkWidget *mainwin_info, *mainwin_othertext; GtkWidget *mainwin_stime_min, *mainwin_stime_sec; -static GtkWidget *mainwin_rate_text, *mainwin_freq_text, - *mainwin_othertext; +static GtkWidget *mainwin_rate_text, *mainwin_freq_text; GtkWidget *mainwin_playstatus; @@ -2438,6 +2437,7 @@ g_signal_connect(mainwin_info, "right-clicked", mainwin_info_right_clicked_cb, NULL); mainwin_othertext = ui_skinned_textbox_new(SKINNED_WINDOW(mainwin)->fixed, 112, 43, 153, 1, SKIN_TEXT); + ui_skinned_textbox_set_xfont(mainwin_othertext, cfg.mainwin_use_xfont, cfg.mainwin_font); mainwin_rate_text = ui_skinned_textbox_new(SKINNED_WINDOW(mainwin)->fixed, 111, 43, 15, 0, SKIN_TEXT);
--- a/src/audacious/ui_main.h Tue Sep 18 14:07:22 2007 -0500 +++ b/src/audacious/ui_main.h Tue Sep 18 21:22:09 2007 +0200 @@ -100,7 +100,7 @@ extern GtkWidget *mainwin_jtf; extern GtkWidget *mainwin_eq, *mainwin_pl; -extern GtkWidget *mainwin_info; +extern GtkWidget *mainwin_info, *mainwin_othertext; extern GtkWidget *mainwin_stime_min, *mainwin_stime_sec;
--- a/src/audacious/ui_preferences.c Tue Sep 18 14:07:22 2007 -0500 +++ b/src/audacious/ui_preferences.c Tue Sep 18 21:22:09 2007 +0200 @@ -585,6 +585,7 @@ cfg.mainwin_font = g_strdup(gtk_font_button_get_font_name(button)); ui_skinned_textbox_set_xfont(mainwin_info, cfg.mainwin_use_xfont, cfg.mainwin_font); + ui_skinned_textbox_set_xfont(mainwin_othertext, cfg.mainwin_use_xfont, cfg.mainwin_font); } static void @@ -602,6 +603,7 @@ gboolean useit = gtk_toggle_button_get_active(button); cfg.mainwin_use_xfont = useit != FALSE ? FALSE : TRUE; ui_skinned_textbox_set_xfont(mainwin_info, cfg.mainwin_use_xfont, cfg.mainwin_font); + ui_skinned_textbox_set_xfont(mainwin_othertext, cfg.mainwin_use_xfont, cfg.mainwin_font); playlistwin_set_sinfo_font(cfg.playlist_font); if (cfg.playlist_shaded) {