M src/common/cfgfiles.c => src/common/cfgfiles.c +0 -2
@@ 461,7 461,6 @@ const struct prefs vars[] =
{"gui_ulist_pos", P_OFFINT (hex_gui_ulist_pos), TYPE_INT},
{"gui_ulist_show_hosts", P_OFFINT(hex_gui_ulist_show_hosts), TYPE_BOOL},
{"gui_ulist_sort", P_OFFINT (hex_gui_ulist_sort), TYPE_INT},
- {"gui_ulist_style", P_OFFINT (hex_gui_ulist_style), TYPE_BOOL},
{"gui_url_mod", P_OFFINT (hex_gui_url_mod), TYPE_INT},
{"gui_win_height", P_OFFINT (hex_gui_win_height), TYPE_INT},
{"gui_win_fullscreen", P_OFFINT (hex_gui_win_fullscreen), TYPE_INT},
@@ 771,7 770,6 @@ load_default_config(void)
prefs.hex_gui_tray_blink = 1;
prefs.hex_gui_ulist_count = 1;
prefs.hex_gui_ulist_icons = 1;
- prefs.hex_gui_ulist_style = 1;
prefs.hex_gui_win_nick = 1;
prefs.hex_gui_win_save = 1;
prefs.hex_input_filter_beep = 1;
M src/common/hexchat.h => src/common/hexchat.h +0 -1
@@ 148,7 148,6 @@ struct hexchatprefs
unsigned int hex_gui_ulist_hide;
unsigned int hex_gui_ulist_icons;
unsigned int hex_gui_ulist_show_hosts;
- unsigned int hex_gui_ulist_style;
unsigned int hex_gui_win_modes;
unsigned int hex_gui_win_nick;
unsigned int hex_gui_win_save;
M src/fe-gtk/chanview.c => src/fe-gtk/chanview.c +3 -8
@@ 44,7 44,6 @@ struct _chanview
int size; /* number of channels in view */
GtkWidget *box; /* the box we destroy when changing implementations */
- GtkStyle *style; /* style used for tree */
chan *focused; /* currently focused channel */
int trunc_len;
@@ 261,15 260,12 @@ chanview_box_destroy_cb (GtkWidget *box, chanview *cv)
}
chanview *
-chanview_new (int type, int trunc_len, gboolean sort, gboolean use_icons,
- GtkStyle *style)
+chanview_new (int type, int trunc_len, gboolean sort, gboolean use_icons)
{
chanview *cv;
cv = g_new0 (chanview, 1);
- cv->store = gtk_tree_store_new (4, G_TYPE_STRING, G_TYPE_POINTER,
- PANGO_TYPE_ATTR_LIST, GDK_TYPE_PIXBUF);
- cv->style = style;
+ cv->store = gtk_tree_store_new (4, G_TYPE_STRING, G_TYPE_POINTER, PANGO_TYPE_ATTR_LIST, GDK_TYPE_PIXBUF);
cv->box = gtk_hbox_new (0, 0);
cv->trunc_len = trunc_len;
cv->sorted = sort;
@@ 277,8 273,7 @@ chanview_new (int type, int trunc_len, gboolean sort, gboolean use_icons,
gtk_widget_show (cv->box);
chanview_set_impl (cv, type);
- g_signal_connect (G_OBJECT (cv->box), "destroy",
- G_CALLBACK (chanview_box_destroy_cb), cv);
+ g_signal_connect (G_OBJECT (cv->box), "destroy", G_CALLBACK (chanview_box_destroy_cb), cv);
return cv;
}
M src/fe-gtk/maingui.c => src/fe-gtk/maingui.c +1 -9
@@ 2477,12 2477,6 @@ mg_create_userlist (session_gui *gui, GtkWidget *box)
gui->user_tree = ulist = userlist_create (vbox);
- if (prefs.hex_gui_ulist_style)
- {
- gtk_widget_set_style (ulist, input_style);
- gtk_widget_modify_base (ulist, GTK_STATE_NORMAL, &colors[COL_BG]);
- }
-
mg_create_meters (gui, vbox);
gui->button_box_parent = vbox;
@@ 3062,9 3056,7 @@ mg_create_tabs (session_gui *gui)
use_icons = TRUE;
}
- gui->chanview = chanview_new (prefs.hex_gui_tab_layout, prefs.hex_gui_tab_trunc,
- prefs.hex_gui_tab_sort, use_icons,
- prefs.hex_gui_ulist_style ? input_style : NULL);
+ gui->chanview = chanview_new (prefs.hex_gui_tab_layout, prefs.hex_gui_tab_trunc, prefs.hex_gui_tab_sort, use_icons);
chanview_set_callbacks (gui->chanview, mg_switch_tab_cb, mg_xbutton_cb,
mg_tab_contextmenu_cb, (void *)mg_tabs_compare);
mg_place_userlist_and_chanview (gui);
M src/fe-gtk/setup.c => src/fe-gtk/setup.c +0 -6
@@ 255,7 255,6 @@ 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 for user modes"), P_OFFINTNL(hex_gui_ulist_icons), N_("Use graphical icons instead of text symbols in the user list."), 0, 0},
{ST_TOGGLE, N_("Color nicknames in userlist"), P_OFFINTNL(hex_gui_ulist_color), N_("Will color nicknames the same as in chat."), 0, 0},
{ST_TOGGLE, N_("Show user count in channels"), P_OFFINTNL(hex_gui_ulist_count), 0, 0, 0},
@@ 2049,9 2048,6 @@ setup_apply_to_sess (session_gui *gui)
{
mg_update_xtext (gui->xtext);
- if (prefs.hex_gui_ulist_style)
- gtk_widget_set_style (gui->user_tree, input_style);
-
if (prefs.hex_gui_input_style)
{
extern char cursor_color_rc[];
@@ 2204,8 2200,6 @@ setup_apply (struct hexchatprefs *pr)
noapply = TRUE;
if (DIFF (hex_gui_ulist_show_hosts))
noapply = TRUE;
- if (DIFF (hex_gui_ulist_style))
- noapply = TRUE;
if (DIFF (hex_gui_ulist_sort))
noapply = TRUE;
if (DIFF (hex_gui_input_style) && prefs.hex_gui_input_style == TRUE)