Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Upgrade Gtk2 to Gtk3, and Gnome2::Wnck breaks

by Anonymous Monk
on Dec 30, 2018 at 09:25 UTC ( [id://1227818]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $screen = Gnome2::Wnck::Screen->get_default()
    $screen->force_update();
    $workspace = $screen->get_active_workspace();
    
  2. or download this
    do {
        $otherWorkspace = $workspace->get_neighbor('WNCK_MOTION_RIGHT');
    until (! $otherWorkspace);
    
  3. or download this
    $workspace->get_width();
    $workspace->get_height();
    
  4. or download this
    $num = $workspace->get_number();
    $name = $workspace->get_name();
    
  5. or download this
    $wnckWin->get_client_window_geometry();
    $wnckWin->set_geometry(
        'WNCK_WINDOW_GRAVITY_CURRENT',
    ...
         $width,
         $height,
    );
    
  6. or download this
    $wnckWin->unminimize(time());
    $wnckWin->minimize();
    if (wnckWin->is_minimized) {
        ...
    }
    
  7. or download this
    foreach my $gtkWin (Gtk2::Window->list_toplevels()) {
        $wnckWinXid = $wnckWin->get_xid();
        $gtkWinXid = $gtkWin->get_xid();
    ...
            ...
        }
    }
    
  8. or download this
    $gdkWin = $gtkWin->get_window();
    $winXid = $gdkWin->get_xid();
        
    ...
        if ($wnckWinXid && $wnckWinXid eq $winXid) {
            ...
    }
    
  9. or download this
    $wnckScreen->force_update();
    foreach my $wnckWin ($wnckScreen->get_windows()) {    
        if ($wnckWin->get_name() eq 'Notepad') {
            ...
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1227818]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found