diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-10-22 18:59:45 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-10-22 18:59:45 +0200 |
commit | bc4fb2fd0ef60e39cc3eb331378672a8a04cb30a (patch) | |
tree | 7ee5fbf4da9a0eb8092c09d979d84f073c628385 /src | |
parent | f5338e014aaf90fdf58b03313be9a7e32710d335 (diff) |
Fix user count options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/cfgfiles.c | 2 | ||||
-rw-r--r-- | src/common/xchat.h | 1 | ||||
-rw-r--r-- | src/fe-gtk/maingui.c | 2 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 23 |
4 files changed, 17 insertions, 11 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index e663e964..a22edd5f 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -480,6 +480,7 @@ const struct prefs vars[] = {"gui_tray", P_OFFINT (hex_gui_tray), TYPE_BOOL}, {"gui_tray_flags", P_OFFINT (hex_gui_tray_flags), TYPE_INT}, {"gui_ulist_buttons", P_OFFINT (hex_gui_ulist_buttons), TYPE_BOOL}, + {"gui_ulist_count", P_OFFINT (hex_gui_ulist_count), TYPE_BOOL}, {"gui_ulist_doubleclick", P_OFFSET (hex_gui_ulist_doubleclick), TYPE_STR}, {"gui_ulist_hide", P_OFFINT (hex_gui_ulist_hide), TYPE_BOOL}, {"gui_ulist_icons", P_OFFINT (hex_gui_ulist_icons), TYPE_BOOL}, @@ -686,6 +687,7 @@ load_config (void) prefs.hex_gui_tab_layout = 2; /* 0=Tabs 1=Reserved 2=Tree */ prefs.hex_gui_tab_icons = 1; prefs.hex_gui_tab_sort = 1; + prefs.hex_gui_ulist_count = 1; prefs.hex_gui_ulist_resizable = 1; prefs.hex_gui_tab_newtofront = 2; prefs.hex_gui_tab_server = 1; diff --git a/src/common/xchat.h b/src/common/xchat.h index 5ee91d1e..c7bac850 100644 --- a/src/common/xchat.h +++ b/src/common/xchat.h @@ -241,6 +241,7 @@ struct hexchatprefs unsigned int hex_gui_topicbar; unsigned int hex_gui_tray; unsigned int hex_gui_ulist_buttons; + unsigned int hex_gui_ulist_count; unsigned int hex_gui_ulist_hide; unsigned int hex_gui_ulist_icons; unsigned int hex_gui_ulist_resizable; diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 64ec02b7..43adaffb 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -2522,7 +2522,7 @@ mg_create_userlist (session_gui *gui, GtkWidget *box) gtk_container_add (GTK_CONTAINER (box), vbox); frame = gtk_frame_new (NULL); - if (!(prefs.hex_gui_win_ucount)) + if (prefs.hex_gui_ulist_count) gtk_box_pack_start (GTK_BOX (vbox), frame, 0, 0, GUI_SPACING); gui->namelistinfo = gtk_label_new (NULL); diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 47b93479..bbdefb9a 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -284,7 +284,8 @@ static const setting userlist_settings[] = {ST_HEADER, N_("User List"),0,0,0}, {ST_TOGGLE, N_("Show hostnames in user list"), P_OFFINTNL(hex_gui_ulist_show_hosts), 0, 0, 0}, {ST_TOGGLE, N_("Use the Text box font and colors"), P_OFFINTNL(hex_gui_ulist_style),0,0,0}, - {ST_TOGGLE, N_("Show icons instead of text symbols"), P_OFFINTNL(hex_gui_ulist_icons), 0, 0, 0}, + {ST_TOGGLE, N_("Show icons instead for user modes"), P_OFFINTNL(hex_gui_ulist_icons), 0, 0, 0}, + {ST_TOGGLE, N_("Show user count in channels"), P_OFFINTNL(hex_gui_ulist_count), 0, 0, 0}, /* {ST_TOGGLE, N_("Resizable user list"), P_OFFINTNL(hex_gui_ulist_resizable),0,0,0},*/ {ST_MENU, N_("User list sorted by:"), P_OFFINTNL(hex_gui_ulist_sort), 0, ulmenutext, 0}, {ST_MENU, N_("Show user list at:"), P_OFFINTNL(hex_gui_ulist_pos), 0, ulpos, 1}, @@ -2202,29 +2203,31 @@ setup_apply (struct hexchatprefs *pr) if (DIFF (hex_gui_lang)) noapply = TRUE; #endif - if (DIFF (hex_gui_ulist_resizable)) - noapply = TRUE; if (DIFF (hex_gui_input_nick)) noapply = TRUE; if (DIFF (hex_gui_lagometer)) noapply = TRUE; - if (DIFF (hex_gui_throttlemeter)) + if (DIFF (hex_gui_tab_icons)) noapply = TRUE; - if (DIFF (hex_gui_ulist_show_hosts)) + if (DIFF (hex_gui_tab_server)) noapply = TRUE; if (DIFF (hex_gui_tab_small)) noapply = TRUE; if (DIFF (hex_gui_tab_sort)) noapply = TRUE; - if (DIFF (hex_gui_ulist_icons)) + if (DIFF (hex_gui_tab_trunc)) noapply = TRUE; - if (DIFF (hex_gui_tab_server)) + if (DIFF (hex_gui_throttlemeter)) noapply = TRUE; - if (DIFF (hex_gui_ulist_style)) + if (DIFF (hex_gui_ulist_count)) noapply = TRUE; - if (DIFF (hex_gui_tab_trunc)) + if (DIFF (hex_gui_ulist_icons)) noapply = TRUE; - if (DIFF (hex_gui_tab_icons)) + if (DIFF (hex_gui_ulist_resizable)) + noapply = TRUE; + if (DIFF (hex_gui_ulist_show_hosts)) + noapply = TRUE; + if (DIFF (hex_gui_ulist_style)) noapply = TRUE; if (DIFF (hex_gui_tab_dots)) |