mirror of
https://github.com/moparisthebest/hexchat
synced 2024-12-22 15:48:52 -05:00
rename pane height variable
This commit is contained in:
parent
1c224894a2
commit
abaf4425d9
@ -435,7 +435,7 @@ const struct prefs vars[] =
|
||||
{"gui_lagometer", P_OFFINT (hex_gui_lagometer), TYPE_INT},
|
||||
{"gui_lang", P_OFFINT (hex_gui_lang), TYPE_INT},
|
||||
{"gui_mode_buttons", P_OFFINT (hex_gui_mode_buttons), TYPE_BOOL},
|
||||
{"gui_pane_height", P_OFFINT (hex_gui_pane_height), TYPE_INT},
|
||||
{"gui_pane_divider_position", P_OFFINT (hex_gui_pane_divider_position), TYPE_INT},
|
||||
{"gui_pane_left_size", P_OFFINT (hex_gui_pane_left_size), TYPE_INT},
|
||||
{"gui_pane_right_size", P_OFFINT (hex_gui_pane_right_size), TYPE_INT},
|
||||
{"gui_pane_right_size_min", P_OFFINT (hex_gui_pane_right_size_min), TYPE_INT},
|
||||
|
@ -252,7 +252,7 @@ struct hexchatprefs
|
||||
int hex_gui_dialog_width;
|
||||
int hex_gui_lagometer;
|
||||
int hex_gui_lang;
|
||||
int hex_gui_pane_height;
|
||||
int hex_gui_pane_divider_position;
|
||||
int hex_gui_pane_left_size;
|
||||
int hex_gui_pane_right_size;
|
||||
int hex_gui_pane_right_size_min;
|
||||
|
@ -2545,7 +2545,7 @@ mg_create_userlist (session_gui *gui, GtkWidget *box)
|
||||
static void
|
||||
mg_vpane_cb (GtkPaned *pane, GParamSpec *param, session_gui *gui)
|
||||
{
|
||||
prefs.hex_gui_pane_height = gtk_paned_get_position (pane);
|
||||
prefs.hex_gui_pane_divider_position = gtk_paned_get_position (pane);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -2766,10 +2766,10 @@ mg_place_userlist_and_chanview_real (session_gui *gui, GtkWidget *userlist, GtkW
|
||||
}
|
||||
}
|
||||
|
||||
if (mg_is_userlist_and_tree_combined () && prefs.hex_gui_pane_height != 0)
|
||||
if (mg_is_userlist_and_tree_combined () && prefs.hex_gui_pane_divider_position != 0)
|
||||
{
|
||||
gtk_paned_set_position (GTK_PANED (gui->vpane_left), prefs.hex_gui_pane_height);
|
||||
gtk_paned_set_position (GTK_PANED (gui->vpane_right), prefs.hex_gui_pane_height);
|
||||
gtk_paned_set_position (GTK_PANED (gui->vpane_left), prefs.hex_gui_pane_divider_position);
|
||||
gtk_paned_set_position (GTK_PANED (gui->vpane_right), prefs.hex_gui_pane_divider_position);
|
||||
}
|
||||
|
||||
if (unref_chanview)
|
||||
|
Loading…
Reference in New Issue
Block a user