diff options
author | jcid <devnull@localhost> | 2007-12-16 16:53:12 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-12-16 16:53:12 +0100 |
commit | 89f33088e8435d2df77f967a17b6639b181bfce2 (patch) | |
tree | d16a90bccf59d0b1098a94ef06c5ccf354dbc2a5 /src/ui.cc | |
parent | c5432a8fcdab01dc1a28e903cf0f786cd60c8467 (diff) |
- Made "New browser window" inherit the panel style of its parent.
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 23 |
1 files changed, 17 insertions, 6 deletions
@@ -558,10 +558,21 @@ Group *UI::make_panel(int ww) /* * User Interface constructor */ -UI::UI(int win_w, int win_h, const char* label) : +UI::UI(int win_w, int win_h, const char* label, const UI *cur_ui) : Window(win_w, win_h, label) { int s_h = 20; + + if (cur_ui) { + PanelSize = cur_ui->PanelSize; + CuteColor = cur_ui->CuteColor; + Small_Icons = cur_ui->Small_Icons; + } else { + // Set some default values + //PanelSize = P_tiny, CuteColor = 26, Small_Icons = 0; + PanelSize = P_medium, CuteColor = 206, Small_Icons = 0; + } + resizable(this); clear_double_buffer(); begin(); @@ -571,10 +582,6 @@ UI::UI(int win_w, int win_h, const char* label) : // (the argument is set later via user_data()) TopGroup->callback(close_window_cb); - // Set some default values - //PanelSize = P_tiny, CuteColor = 26, Small_Icons = 0; - PanelSize = P_medium, CuteColor = 206, Small_Icons = 0; - // Control panel Panel = make_panel(win_w); @@ -643,6 +650,10 @@ UI::UI(int win_w, int win_h, const char* label) : customize(0); + if (cur_ui && cur_ui->Panel->w() == 0) { + fullscreen_cb_i(); + } + //show(); } @@ -669,7 +680,7 @@ int UI::handle(int event) a_UIcmd_open_url_dialog(user_data()); ret = 1; } else if (k == 'n') { - a_UIcmd_browser_window_new(w(), h()); + a_UIcmd_browser_window_new(w(), h(), this); ret = 1; } else if (k == 'o') { a_UIcmd_open_file(user_data()); |