GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Gtk2::Ex::Utils(3) User Contributed Perl Documentation Gtk2::Ex::Utils(3)

Gtk2::Ex::Utils - Extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl.

 use Gtk2::Ex::Utils qw( :main );

 # do stuff
 ...

 # Update the UI and react to pending events
 process_pending_events();

 # do more stuff
 ...

 # Exit the program with a value of 255 for some reason
 process_main_exit( 255 );

This module provides simple utility functions useful for Gnome2/Gtk2 Perl programming.

:all :main :alter :create

process_pending_events ( )
For all pending events, run through the main loop once. Useful for long processes to update the user interface.
process_main_exit ( [ EXIT_VALUE ] )
This will quit the main event loop after all pending events have been given a run through the main loop one last time. Once the UI work is done, exit with the value given or zero. Should the exit value passed be the string 'no-exit', the function will return TRUE instead of exiting.

DOUBLE = force_progress_bounds ( DOUBLE )
Used with Gtk2 progress bars to ensure a given value is within the 0.00 to 1.00 bounds for valid percentages. This function will modify invalid values appropriately to either 0.00 or 1.00 should the value be out of bounds.
Gtk2::Label = make_label_wrap_left_centred ( Gtk2::Label )
Given a Gtk2::Label will center the alignment, left justify the text, make the label selectable and make the label wrap lines.

Gtk2::Button = create_mnemonic_icon_button ( ICON, STRING )
This will create a new Gtk2::Button, a Gtk2::Image and a label then pack the image and label into an hbox inside the button. The label is new_with_mnemonic and the ICON given can be one of the following types: a stock-id string, the path to an image file, a Gtk2::Image object or a Gtk2::Gdk::Pixbuf object. The button has references to the three components as follows: $button->{HBOX}, $button->{LABEL} and $button->{IMAGE}.

 Please report all bugs to the mailing list.

If you've got a utility function that is related to Gnome2/Gtk2 Perl, that is not already implemented in here and feel that others may benefit from it's inclusion here, please do not hesitate to send it to the mailing list.

 http://opendoorsoftware.com/lists/gtk2-ex-list
 gtk2-ex-list@opendoorsoftware.com

 Kevin C. Krinke, <kckrinke@opendoorsoftware.com>
 James Greenhalgh, <jgreenhalgh@opendoorsoftware.com>

 Gtk2::Ex::Utils - Useful utility functions for working with Gnome2/Gtk2 Perl.
 Copyright (C) 2005 Open Door Software Inc. <ods@opendoorsoftware.com>

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

Hey! The above document had some coding errors, which are explained below:
Around line 74:
'=item' outside of any '=over'
Around line 116:
You forgot a '=back' before '=head2'
Around line 118:
'=item' outside of any '=over'
Around line 167:
You forgot a '=back' before '=head2'
Around line 169:
'=item' outside of any '=over'
Around line 221:
You forgot a '=back' before '=head1'
2005-02-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.