Main > Free Download Search >

Free gtk2 software for linux

gtk2

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 231
Gtk2 1.144

Gtk2 1.144


Gtk2 is a Perl interface to the 2.x series of the Gimp Toolkit library. more>>
Gtk2 is a Perl interface to the 2.x series of the Gimp Toolkit library.

SYNOPSIS

use Gtk2 -init;
# Gtk2->init; works if you didnt use -init on use
my $window = Gtk2::Window->new (toplevel);
my $button = Gtk2::Button->new (Quit);
$button->signal_connect (clicked => sub { Gtk2->main_quit });
$window->add ($button);
$window->show_all;
Gtk2->main;

ABSTRACT

Perl bindings to the 2.x series of the Gtk+ widget set. This module allows you to write graphical user interfaces in a perlish and object-oriented way, freeing you from the casting and memory management in C, yet remaining very close in spirit to original API.

The Gtk2 module allows a perl developer to use the Gtk+ graphical user interface library. Find out more about Gtk+ at http://www.gtk.org.

The GTK+ Reference Manual is also a handy companion when writing Gtk programs in any language. http://developer.gnome.org/doc/API/2.0/gtk/ The perl bindings follow the C API very closely, and the C reference documentation should be considered the canonical source.

<<less
Download (0.65MB)
Added: 2007-03-13 License: Perl Artistic License Price:
955 downloads
Gtk2Fu 0.10

Gtk2Fu 0.10


Gtk2Fu is a GTK2 Forked Ultimate, a powerful layer on top of Gtk2. more>>
Gtk2Fu is a GTK2 Forked Ultimate, a powerful layer on top of Gtk2. (forked from ugtk2.)

gtk2-fu is a layer on top of perl gtk2, that brings power, simplicity and speed of development. It brings additional methods to ease the widget creation among other things. But the most important feature is that it brings you a lot of derivated methods from existing methods, that does exactly the same thing, except that ir returns the widget. Example :

$window->set_title(foo); #the normal method
$window->set_title_(foo); #the gtk2-fu derivated method
set_title_ does the same things as set_title, but it returns $window.

Whats the advantage? you can chain actions ! Look at the 2 code examples below :

# normal perl-gtk2
my $window = Gtk2::Window->new();
my $entry = Gtk2::Entry->new();
$entry->set_text(foo);
$entry->set_editable(0);
$window->add($entry);

# using gtk2-fu
my $window = Gtk2::Window->new();
$window->add(
Gtk2::Entry->new()
->set_text_(foo)
->set_editable_(0)
);

You could even get rid of the $window declaration. The gain can seem to you very minor, but in more complex cases, it allows you to create a complex GUI really easilly. Youll find a bigger example at the end of this documentation
In addition to this feature, gtk2-fu provides a toolbox of useful help methods to create widgets, ask things to the user, and misc other things.

<<less
Download (0.020MB)
Added: 2006-07-13 License: Perl Artistic License Price:
1198 downloads
gtk2-perl 1.151

gtk2-perl 1.151


gtk2-perl is the collective name for a set of perl bindings for Gtk+ 2.x and various related libraries. more>>
gtk2-perl project is the collective name for a set of perl bindings for Gtk+ 2.x and various related libraries. These modules make it easy to write Gtk and Gnome applications using a natural, perlish, object-oriented syntax.

This set of extension modules gives the Perl developer full access to the gtk+ widget set and several gnome libraries in a perlish, object-oriented way.

You can create new widgets and non-gui objects, and do just about anything you can do in C. We also include POD for every object (installed as manpages), and provide tools for binding other GObject-based libraries to Perl.

<<less
Download (0.65MB)
Added: 2006-08-07 License: GPL (GNU General Public License) Price:
1180 downloads
Gtk2::api 1.145

Gtk2::api 1.145


Gtk2::api is a mapping the Gtk+ C API to perl. more>>
Gtk2::api is a mapping the Gtk+ C API to perl.

ABSTRACT
The Gtk2 module attempts to stick as close as is reasonable to the C API, to minimize the need to maintain documentation which is nearly a copy of the C API reference documentation. However, the world is not perfect, and the mappings between C and perl are not as clean and predictable as you might wish. Thus, this page described the basics of how to map the C API to the perl API, and lists various points in the API which follow neither the C API documentation nor the mapping principles.

The canonical documentation is the C API reference at http://developer.gnome.org/doc/API/gtk/ and http://developer.gnome.org/doc/API/gdk/
There are two main sections: BINDING BASICS describes the principles on which the bindings work; understanding these can lead you to guess the proper syntax to use for any given function described in the C API reference.

The second section lists various specific points of difference which dont necessarily correspond with what you expect; this section is in three main parts: missing methods, renamed methods, and different call signatures.

<<less
Download (0.64MB)
Added: 2007-07-16 License: Perl Artistic License Price:
832 downloads
Gtk2::devel 1.142

Gtk2::devel 1.142


Gtk2::devel is the internal workings of the gtk2-perl language bindings. more>>
Gtk2::devel is the internal workings of the gtk2-perl language bindings.

This document is a supplement to Glib::devel, and assumes you have read and understood all about how the base Glib bindings work. Most of this will seem like nonsense, otherwise.
Here we focus on the ways in which Gtk2 extends Glibs concepts for binding the Gtk+ C libraries to perl, a methodology and set of tools you can use to wrap your own GObject-based libraries.

GtkObject

GtkObject adds the idea of a floating reference to GObject. A GObject is created with one reference which must be explicitly removed by its owner. GtkObject has a floating reference which is sunk by the code which wants to own it. This makes it less painful to create lots of objects in a row (you dont have to unref them).

To allow for this difference in procedure for taking ownership of an object, Glib allows you to register a "sink" function for a particular class. When asked to create a wrapper that owns the object, gperl_new_object will compare the list of registered sink functions with the type of the object; if the object is descended from a type, that sink function will be run on the object. The default one is g_object_unref(), of course. (this is inspired by pygtk.)
Thus, in Gtk2::Objects boot code, we register gtk_object_sink as the sink func for types derived from GtkObject. Now all wrappers for these types will be owned the proper way.

Of course, since gtk_object_sink() does nothing if the object isnt floating, it doesnt hurt anything if you always call gperl_new_object with "own" set to TRUE. So, to make life a little easier, Gtk2 defines another function

SV * gtk2perl_new_gtkobject (GtkObject * o);

Which does nothing more than

{
return gperl_new_object (G_OBJECT (o), TRUE);
}

Its also important to know that this is largely done for you by the typemap.

<<less
Download (0.63MB)
Added: 2007-02-23 License: Perl Artistic License Price:
975 downloads
Gtk2::Ex::DBI 2.0

Gtk2::Ex::DBI 2.0


Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source. more>>
Gtk2::Ex::DBI - Bind a Gtk2::GladeXML can generated window to a DBI data source.

SYNOPSIS

use DBI; use Gtk2 -init; use Gtk2::GladeXML; use Gtk2::Ex::DBI;
my $dbh = DBI->connect ( "dbi:mysql:dbname=sales;host=screamer;port=3306", "some_username", "salespass", { PrintError => 0, RaiseError => 0, AutoCommit => 1, } );
my $prospects_form = Gtk2::GladeXML->new("/path/to/glade/file/my_form.glade", Prospects);
my $data_handler = Gtk2::Ex::DBI->new( { dbh => $dbh, schema => "sales", sql => { select => "*", from => "Prospects", where => "Actve=? and Employees>?", where_values => [ 1, 200 ], order_by => "ClientName", }, form => $prospects, formname => "Prospects", on_current => &Prospects_current, calc_fields => { calc_total => eval { $self->{form}->get_widget("value_1")->get_text + $self->{form}->get_widget("value_2")->get_text } }, default_values => { ContractYears => 5, Fee => 2000 } } );
sub Prospects_current {
# I get called when moving from one record to another ( see on_current key, above )
}

<<less
Download (0.028MB)
Added: 2006-07-19 License: Perl Artistic License Price:
1192 downloads
Gtk2::Helper 1.122

Gtk2::Helper 1.122


Gtk2::Helper is a Perl module for convenience functions for the Gtk2 module. more>>
Gtk2::Helper is a Perl module for convenience functions for the Gtk2 module.

SYNOPSIS

use Gtk2::Helper;

# Handle I/O watchers easily, like Gtk 1.x did
$tag = Gtk2::Helper->add_watch ( $fd, $cond, $callback, $data )
$rc = Gtk2::Helper->remove_watch ( $tag )

ABSTRACT

This module collects Gtk2 helper functions, which should make implementing some common tasks easier.

Gtk2::Helper->add_watch ( ... )

$tag = Gtk2::Helper->add_watch ( $fd, $cond, $callback, $data )

This method is a wrapper for Glib::IO->add_watch. The callback is called every time when its safe to read from or write to the watched filehandle.

$fd

Unix file descriptor to be watched. If you use the FileHandle module you get this value from the FileHandle->fileno() method.

$cond

May be either in or out, depending if you want to read from the filehandle (in) or write to it (out).

$callback

A subroutine reference or closure, which is called, if you can safely operate on the filehandle, without the risk of blocking your application, because the filehandle is not ready for reading resp. writing.

But aware: you should not use Perls builtin read and write functions here because these operate always with buffered I/O. Use low level sysread() and syswrite() instead. Otherwise Perl may read more data into its internal buffer as your callback actually consumes. But Glib wont call the callback on data which is already in Perls buffer, only when events on the the underlying Unix file descriptor occur.

The callback subroutine should return always true. Two signal watchers are connected internally (the I/O watcher, and a HUP watcher, which is called on eof() or other exceptions). Returning false from a watcher callback, removes the correspondent watcher automatically. Because we have two watchers internally, only one of them is removed, but probably not both. So always return true and use Gtk2::Helper->remove_watch to disable a watcher, which was installed with Gtk2::Helper->add_watch.

(Gtk2::Helper could circumvent this by wrapping your callback with a closure returning always true. But why adding another level of indirection if writing a simple "1;" at the end of your callback solves this problem? ;)

$data

This data is passed to the callback.

$tag

The method returns a tag which represents the created watcher. Later you need to pass this tag to Gtk2::Helper->remove_watch to remove the watcher.

<<less
Download (0.60MB)
Added: 2006-07-18 License: Perl Artistic License Price:
1193 downloads
Gtk2::CodeGen 1.122

Gtk2::CodeGen 1.122


Gtk2::CodeGen is a code generation utilities for Glib-based bindings. more>>
Gtk2::CodeGen is a code generation utilities for Glib-based bindings.

SYNOPSIS

# usually in Makefile.PL
use Gtk2::CodeGen;

# most common, use all defaults
Gtk2::CodeGen->parse_maps (myprefix);
Gtk2::CodeGen->write_boot;

# more exotic, change everything
Gtk2::CodeGen->parse_maps (foo,
input => foo.maps,
header => foo-autogen.h,
typemap => foo.typemap,
register => register-foo.xsh);
Gtk2::CodeGen->write_boot (filename => bootfoo.xsh,
glob => Foo*.xs,
ignore => ^(Foo|Foo::Bar)$);

This module packages some of the boilerplate code needed for performing code generation typically used by perl bindings for gobject-based libraries, using the Glib module as a base.

The default output filenames are in the subdirectory build, which usually will be present if you are using ExtUtils::Depends (as most Glib-based extensions probably should).

<<less
Download (0.60MB)
Added: 2006-07-19 License: Perl Artistic License Price:
1194 downloads
Gtk2::TrayIcon 0.03

Gtk2::TrayIcon 0.03


Gtk2::TrayIcon is a Perl interface to the EggTrayIcon library. more>>
Gtk2::TrayIcon is a Perl interface to the EggTrayIcon library.

SYNOPSIS

use Gtk2::TrayIcon;
Gtk2->init;

my $icon= Gtk2::TrayIcon->new("test");
my $label= Gtk2::Label->new("test");
$icon->add($label);
$icon->show_all;

Gtk2->main;

ABSTRACT

This module allows a Perl developer to embed an arbitrary widget in a System Tray like the Gnome notification area.

EggTrayIcon is slated for inclusion in Gtk+ at some point, which is the reason the Gtk2::TrayIcon namespace. As all egg libs, EggTrayIcon is not considered api stable and its not installed as a shared object.

Enough about what it is not, Gtk2::TrayIcon is first and foremost a simple way of giving a Gtk2 script access to the system tray.

System Trays are found in both KDE and Gnome. But neither support the spec fully (see below).

Gtk2::TrayIcon is a subclass of Gtk2::Plug and should be used as such.

<<less
Download (0.007MB)
Added: 2006-07-18 License: GPL (GNU General Public License) Price:
1194 downloads
Gtk2::SourceView 1.000

Gtk2::SourceView 1.000


Gtk2::SourceView provides Perl wrappers for the GtkSourceView widget. more>>
Gtk2::SourceView provides Perl wrappers for the GtkSourceView widget.

Perl bindings to the 1.x series of the GtkSourceView widget libraries.

This module allows you to write Perl applications that utilize the GtkSourceView library for source editing and printing.

<<less
Download (0.016MB)
Added: 2007-03-29 License: GPL (GNU General Public License) Price:
939 downloads
Gtk2::Ex::Utils 0.09

Gtk2::Ex::Utils 0.09


Gtk2::Ex::Utils is a Perl module with extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl. more>>
Gtk2::Ex::Utils is a Perl module with extra Gtk2 Utilities for working with Gnome2/Gtk2 in Perl.

SYNOPSIS

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.

<<less
Download (0.014MB)
Added: 2007-03-06 License: Perl Artistic License Price:
962 downloads
Gtk2::GladeXML 1.005

Gtk2::GladeXML 1.005


Gtk2::GladeXML is a Perl module that create user interfaces directly from Glade XML files. more>>
Gtk2::GladeXML is a Perl module that create user interfaces directly from Glade XML files.

SYNOPSIS

# for a pure gtk+ glade project
use Gtk2 -init;
use Gtk2::GladeXML;
$gladexml = Gtk2::GladeXML->new(example.glade);
$gladexml->signal_autoconnect_from_package(main);
$quitbtn = $gladexml->get_widget(Quit);
Gtk2->main;

# for glade files using gnome widgets, you must initialize Gnome2
# before loading the glade file.
use Gnome2;
use Gtk2::GladeXML;
# this call also initializes gtk+ for us
Gnome2::Program->init ($appname, $version);
$gladexml = Gtk2::GladeXML->new(gnomeapp.glade);
Gtk2->main;

ABSTRACT

Gtk2::GladeXML allows Perl programmers to use libglade, a C library which generates graphical user interfaces directly from the XML output of the Glade user interface designer.

Glade is a free user interface builder for GTK+ and GNOME. After designing a user interface with glade-2 the layout and configuration are saved in an XML file. libglade is a library which knows how to build and hook up the user interface described in the Glade XML file at application run time.

This extension module binds libglade to Perl so you can create and manipulate user interfaces in Perl code in conjunction with Gtk2 and even Gnome2. Better yet you can load a files contents into a PERL scalar do a few magical regular expressions to customize things and the load up the app. It doesnt get any easier.

<<less
Download (0.034MB)
Added: 2006-07-13 License: Perl Artistic License Price:
1199 downloads
sylpheed-gtk2 1.0.0

sylpheed-gtk2 1.0.0


sylpheed-gtk2 is a Gtk+2 port of the Sylpheed. more>>
sylpheed-gtk2 is a Gtk+2 port of the Sylpheed. Sylpheed is an e-mail client and news reader based on GTK+ GUI toolkit, and runs on X Window System.
Sylpheed is a free software distributed under the GNU GPL.
The development of Sylpheed sets the following things as its goal:
- Quick response by keeping CPU and memory usage to a minimum
- Fast processing even though a folder contains large number of messages
(more than 10 thousand)
- Enables intuitive operation by simple, graceful, and well-polished
interface
- Similar operation methods to other mailers.
- Readily available with simple configuration
- Fully equipped with features required as a mailer
- Full support of Japanese, and support of i18n
- Enables flexible interaction with external commands
- Stable, and dont lose any data (to the utmost) in case of crash
The interface is also designed to emulate the Emacs-based mailers, and almost all commands are accessible with the keyboard. So you will able to migrate to Sylpheed
without much discomfort in the case where you are accustomed to other
mailers. It has a look similar like Outlook Express, Becky!, Datula.
The messages are managed by MH format, and youll be able to use it together
with another mailer based on MH format (like Mew). It has less possibility
of losing mails on failures since one file corresponds to one mail. You can
import or export mbox format messages. You can also utilize fetchmail or/and
procmail, and external programs on receiving (like inc or imget).
Main features:
- Supported protocols
- POP3
- IMAP4rev1
- SMTP
- NNTP
- SSL/TLSv1 (POP3, SMTP, IMAP4rev1, NNTP)
- IPv6
- Features
- multiple accounts
- thread display
- powerful filtering
- MIME (attachments)
- integrated News reader
- SMTP AUTH support
- CRAM-MD5 authentication (SMTP AUTH / IMAP4rev1)
- APOP authentication (POP3)
- PGP signature / encryption (requires GPGME)
- built-in image view
- X-Face display
- user-defined headers
- color label
- Mew/Wanderlust compatible key bind
- multiple MH folder support
- mbox importing / exporting
- external editor
- message queueing
- automatic mail checking
- draft message
- template
- line-wrapping
- clickable URI
- XML-based address book
- newly arrived and unread message management
- printing
- offline mode
- remote operation by command line
- per-folder configuration
- LDAP, vCard, and JPilot support
- Drag & Drop
- autoconf, automake support
- internationalization of messages by gettext
- support of many code sets, including UTF-8 (Unicode)
<<less
Download (3.3MB)
Added: 2006-06-12 License: GPL (GNU General Public License) Price:
1230 downloads
Gtk2::Ex::Carp 0.01

Gtk2::Ex::Carp 0.01


Gtk2::Ex::Carp is a GTK+ friendly die() and warn() functions. more>>
Gtk2::Ex::Carp is a GTK+ friendly die() and warn() functions.

SYNOPSIS

use Gtk2::Ex::Carp;

# these override the standard Perl functions:

warn(i told you not to push that button!);

die(an ignominious death);


# new functions for showing extended error information:

# like warn(), but shows a dialog with extra information
# in an expandable text entry:
worry($SHORT_MESSAGE, $EXTENDED_INFORMATION);

# like worry(), but fatal:
wail($SHORT_MESSAGE, $EXTENDED_INFORMATION);

This module exports four functions, of which two override the standard die() and warn() functions, and two which allow for extended error reporting. When called, these functions display a user-friendly message dialog window.

The die() function in this module actually replaces the core die() function, so any modules youve loaded may die will use former instead of the latter. die() will also print the error message to STDERR and will exit the program (with the appropriate exit code) when the dialog is dismissed.

The warn() function will also print a message to STDERR, but will allow the program to continue running when the dialog is dismissed.

EXTRA FUNCTIONS
The worry() and wail() functions behave just like warn() and die(), respectively, except that they allow you to provide additional information. A second argument, which can contain additional error information, is used to fill a text box inside an expander.

HANDLING GLIB EXCEPTIONS
This module also installs warn() as a Glib exception handler. Any unhandled exceptions will be presented to the user in a warning dialog.

PROGRAM FLOW
Note that all the functions in this module create dialogs and use the run() method, so that the standard Glib main loop is blocked until the user responds to the dialog.

<<less
Download (0.04MB)
Added: 2006-07-12 License: GPL (GNU General Public License) Price:
1199 downloads
Gtk2::TrayManager 0.05

Gtk2::TrayManager 0.05


Gtk2::TrayManager is a Perl bindings for EggTrayManager. more>>
Gtk2::TrayManager is a Perl bindings for EggTrayManager.

SYNOPSIS

use Gtk2 -init;
use Gtk2::TrayManager;

my $screen = Gtk2::Gdk::Screen->get_default;

if (Gtk2::TrayManager->check_running($screen)) {
print STDERR "A tray manager is already running, sorry!n";
exit 256;
}

my $tray = Gtk2::TrayManager->new;
$tray->manage_screen($screen);
$tray->set_orientation(vertical);

$tray->signal_connect(tray_icon_added, sub {
# $_[1] is a Gtk2::Socket
});

$tray->signal_connect(tray_icon_removed, sub {
# $_[1] is a Gtk2::Socket
});

The EggTrayManager library is used internally by GNOME to implement the server-side of the Notification Area (or system tray) protocol. Gtk2::TrayManager allows you to create notification area applications using Gtk2-Perl.

<<less
Download (0.011MB)
Added: 2006-07-18 License: Perl Artistic License Price:
1195 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5