diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-18 02:45:58 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-12-20 10:25:03 +0100 |
commit | d7d2e0ecefd9b993282a4750bea5653edfb084c7 (patch) | |
tree | a8158d1fe5fb167e9bc70d01d72240e835f8651a | |
parent | 74c329670042943fe1b4fc1b935c66973c723862 (diff) | |
download | control-center-d7d2e0ecefd9b993282a4750bea5653edfb084c7.tar control-center-d7d2e0ecefd9b993282a4750bea5653edfb084c7.tar.gz control-center-d7d2e0ecefd9b993282a4750bea5653edfb084c7.tar.bz2 control-center-d7d2e0ecefd9b993282a4750bea5653edfb084c7.tar.xz control-center-d7d2e0ecefd9b993282a4750bea5653edfb084c7.zip |
perlish ->window => ->get_window
-rwxr-xr-x | control-center | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/control-center b/control-center index bb523987..26fa0c09 100755 --- a/control-center +++ b/control-center @@ -843,7 +843,7 @@ sub build_widget_element { $icon, $programs{$label}{description}, $programs{$label}); }; # FIX ME: DO THIS AGAIN: - $tool_feedback{$label} = sub {}; #sub { $event_box->window && $event_box->window->set_cursor($hand_cursor) }; + $tool_feedback{$label} = sub {}; #sub { $event_box->get_window && $event_box->window->set_cursor($hand_cursor) }; my $real_icon = $icon ? '<IMG SRC="' . mygtk3::_find_imgfile($icon) . '">' : ''; my @widgets = ( qq(<TD class="img">$real_icon</TD>), @@ -1077,9 +1077,9 @@ $wait_darea->signal_connect(expose_event => sub { $w->{text_yy} = $w->{pix_yy} + ($w->{pix_width} - $txt_width)/2; $w->{text_xx} = $w->{pix_xx} + $w->{pix_height} + 5; } - $pixbuf->render_to_drawable($w->window, $w->style->fg_gc('normal'), 0, 0, $w->{pix_yy}, $w->{pix_xx}, $w->{pix_width}, $w->{pix_height}, 'normal', 0, 0); + $pixbuf->render_to_drawable($w->get_window, $w->style->fg_gc('normal'), 0, 0, $w->{pix_yy}, $w->{pix_xx}, $w->{pix_width}, $w->{pix_height}, 'normal', 0, 0); my $style = $wait_darea->{style} ||= $wait_darea->get_style; - $wait_darea->window->draw_layout($style->text_gc('normal'), $w->{text_yy}, $w->{text_xx}, $w->{layout}); + $wait_darea->get_window->draw_layout($style->text_gc('normal'), $w->{text_yy}, $w->{text_xx}, $w->{layout}); $run_counter += $run_counter_add; $run_counter_add = -$run_counter_add if $run_counter < 100 || 255-$run_counter_add < $run_counter; }); @@ -1187,7 +1187,7 @@ sub create_hidden_socket { $emb_socket->show; $emb_socket->can_focus(1); $emb_socket->grab_focus; - #$emb_socket->window->XSetInputFocus; #only need by console (no more embedded until we've vte/zvt binding) + #$emb_socket->get_window->XSetInputFocus; #only need by console (no more embedded until we've vte/zvt binding) }); $emb_box->set_focus_child($emb_socket); $emb_socket->hide; @@ -1279,12 +1279,12 @@ sub run_tool { [ $color->green, $bg->green ], [ $color->blue, $bg->blue ]); if ($wait_darea->{not_yet_complete} && any { $_->[0] != $_->[1] } @colors) { - $wait_darea->window->set_background($color); + $wait_darea->get_window->set_background($color); $wait_darea->{color} = gtkcolor(map { $_->[0] - min(300, $_->[0] - $_->[1]) } @colors); $wait_darea->queue_draw; } elsif ($wait_darea->{not_yet_complete}) { # set exact color - $wait_darea->window->set_background($bg); + $wait_darea->get_window->set_background($bg); $wait_darea->queue_draw; $wait_darea->{not_yet_complete} = 0; } else { @@ -1304,7 +1304,7 @@ sub run_tool { $gurpmi_pid = $tool_pids{$label} if $will_run_gurpmi; } start_logdrake(); - $box->window->set_cursor($wait_cursor) if $box; + $box->get_window->set_cursor($wait_cursor) if $box; } sub start_logdrake() { |