File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
lib/App/Asciio/GTK/Asciio Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -327,15 +327,14 @@ $text_heigh =max($text_heigh, 3) ;
327327
328328my ($character_width , $character_height ) = $asciio -> get_character_size() ;
329329my ($root_x , $root_y ) = $asciio -> get_window()-> get_origin() ;
330- my ($v_value , $h_value ) = ($asciio -> {vadjustment }-> get_value(), $asciio -> {hadjustment }-> get_value()) ;
331330
332331my $window = new Gtk3::Window() ;
333332
334333my $dialog = Gtk3::Dialog-> new($title , $window , ' destroy-with-parent' ) ;
335334$dialog -> set_default_size ($text_width , $text_heigh ) ;
336335$dialog -> set_border_width(0) ;
337336$dialog -> set_decorated(0) ;
338- $dialog -> move($root_x +(($X +$text_begin_x )*$character_width )- $h_value , $root_y +(($Y +$text_begin_y )*$character_height )- $v_value ) ;
337+ $dialog -> move($root_x +(($X +$text_begin_x )*$character_width ), $root_y +(($Y +$text_begin_y )*$character_height )) ;
339338
340339my $vbox = Gtk3::VBox-> new(FALSE, 5) ;
341340$vbox -> pack_start(Gtk3::Label-> new(" " ), FALSE, FALSE, 0) ;
Original file line number Diff line number Diff line change @@ -164,15 +164,14 @@ my $final_heigh = $text_heigh + $title_heigh + 1;
164164
165165my ($character_width , $character_height ) = $asciio -> get_character_size() ;
166166my ($root_x , $root_y ) = $asciio -> get_window()-> get_origin() ;
167- my ($v_value , $h_value ) = ($asciio -> {vadjustment }-> get_value(), $asciio -> {hadjustment }-> get_value());
168167
169168my $window = new Gtk3::Window() ;
170169
171170my $dialog = Gtk3::Dialog-> new(' Box attributes' , $window , ' destroy-with-parent' ) ;
172171$dialog -> set_default_size($final_width , $final_heigh );
173172$dialog -> set_border_width(0);
174173$dialog -> set_decorated(0);
175- $dialog -> move($root_x +(($X +$text_begin_x )*$character_width )- $h_value , $root_y +(($Y +$text_begin_y )*$character_height )- $v_value );
174+ $dialog -> move($root_x +(($X +$text_begin_x )*$character_width ), $root_y +(($Y +$text_begin_y )*$character_height ));
176175
177176my $vbox = Gtk3::VBox-> new(FALSE, $character_height );
178177$vbox -> add(Gtk3::Label-> new (" " ));
Original file line number Diff line number Diff line change @@ -140,15 +140,14 @@ $text_heigh = max($text_heigh, 3) ;
140140
141141my ($character_width , $character_height ) = $asciio -> get_character_size() ;
142142my ($root_x , $root_y ) = $asciio -> get_window()-> get_origin() ;
143- my ($v_value , $h_value ) = ($asciio -> {vadjustment }-> get_value(), $asciio -> {hadjustment }-> get_value());
144143
145144my $window = new Gtk3::Window() ;
146145
147146my $dialog = Gtk3::Dialog-> new(' Ellips attributes' , $window , ' destroy-with-parent' ) ;
148147$dialog -> set_default_size($text_width , $text_heigh );
149148$dialog -> set_border_width(0);
150149$dialog -> set_decorated(0);
151- $dialog -> move($root_x +(($X +$text_x )*$character_width )- $h_value , $root_y +(($Y +$text_y )*$character_height )- $v_value );
150+ $dialog -> move($root_x +(($X +$text_x )*$character_width ), $root_y +(($Y +$text_y )*$character_height ));
152151
153152my $vbox = Gtk3::VBox-> new(FALSE, 5);
154153$vbox -> add(Gtk3::Label-> new (" " ));
Original file line number Diff line number Diff line change @@ -120,15 +120,14 @@ $text_heigh = max($text_heigh, 3) ;
120120
121121my ($character_width , $character_height ) = $asciio -> get_character_size() ;
122122my ($root_x , $root_y ) = $asciio -> get_window()-> get_origin() ;
123- my ($v_value , $h_value ) = ($asciio -> {vadjustment }-> get_value(), $asciio -> {hadjustment }-> get_value());
124123
125124my $window = new Gtk3::Window() ;
126125
127126my $dialog = Gtk3::Dialog-> new(' Rhombus attributes' , $window , ' destroy-with-parent' ) ;
128127$dialog -> set_default_size($text_width , $text_heigh );
129128$dialog -> set_border_width(0);
130129$dialog -> set_decorated(0);
131- $dialog -> move($root_x +(($X +$text_begin_x )*$character_width )- $h_value , $root_y +(($Y +$text_begin_y )*$character_height )- $v_value );
130+ $dialog -> move($root_x +(($X +$text_begin_x )*$character_width ), $root_y +(($Y +$text_begin_y )*$character_height ));
132131
133132my $vbox = Gtk3::VBox-> new(FALSE, 5);
134133$vbox -> add(Gtk3::Label-> new (" " ));
You can’t perform that action at this time.
0 commit comments