Skip to content

Commit 4afef7f

Browse files
author
H.Merijn Brand - Tux
committed
Use geometry configuration as startup geometry
1 parent a9eb2c7 commit 4afef7f

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

lib/PM/CB/GUI.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ sub gui {
4040
require Tk::Balloon;
4141

4242
$self->{mw} = my $mw = 'MainWindow'->new(-title => TITLE);
43+
$self->{geometry} and $mw->geometry ($self->{geometry});
4344
$mw->protocol(WM_DELETE_WINDOW => sub { $self->quit });
4445
$mw->optionAdd('*font', "$self->{font_name} $self->{char_size}");
4546

pm-cb-g

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,28 +109,13 @@ my $control_t = $worker_class->create(sub {
109109
});
110110

111111
my $gui = 'PM::CB::GUI'->new({
112-
bg_color => $conf{bg_color},
113-
fg_color => $conf{fg_color},
114-
author_color => $conf{author_color},
115-
private_color => $conf{private_color},
116-
gesture_color => $conf{gesture_color},
117-
time_color => $conf{time_color},
118-
font_name => $conf{font_name},
119-
char_size => $conf{char_size},
120-
stack_size => $conf{stack_size},
121-
seen_color => $conf{seen_color},
122-
mce => $conf{mce},
123-
no_time => $conf{no_time},
124-
from_comm => $to_gui,
125-
to_comm => $to_comm,
126-
to_control => $to_control,
127-
control_t => $control_t,
128-
copy_url => $conf{copy_url},
129-
browse_url => $conf{browse_url},
130-
random_url => $conf{random_url}});
112+
%conf,
113+
from_comm => $to_gui,
114+
to_comm => $to_comm,
115+
to_control => $to_control,
116+
control_t => $control_t});
131117
$gui->gui;
132118

133-
134119
=head1 NAME
135120
136121
pm-cb-g - A GUI client to PerlMonks' Chatter Box

0 commit comments

Comments
 (0)