From 1c224894a290ae6901c982c9f3f271d76cfc069b Mon Sep 17 00:00:00 2001 From: TingPing Date: Fri, 30 Nov 2012 17:22:12 -0500 Subject: Save pane height and restore on start closes #154 --- src/common/cfgfiles.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/cfgfiles.c') diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 68bad7a9..d32c7687 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -435,6 +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_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}, -- cgit 1.4.1 From abaf4425d9cf59166011e63abb5c28ac4d7fa32d Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 1 Dec 2012 19:43:20 -0500 Subject: rename pane height variable --- src/common/cfgfiles.c | 2 +- src/common/hexchat.h | 2 +- src/fe-gtk/maingui.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/common/cfgfiles.c') diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index d32c7687..b51fb1d2 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -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}, diff --git a/src/common/hexchat.h b/src/common/hexchat.h index 5045b4bd..d84e2761 100644 --- a/src/common/hexchat.h +++ b/src/common/hexchat.h @@ -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; diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 3c6c9782..04cedd6a 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -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) -- cgit 1.4.1