Enlightenment CVS committal
Author : leviathan
Project : e17
Module : libs/etk-perl
Dir : e17/libs/etk-perl/etk_test
Modified Files:
etk_test.pl
Log Message:
Add image support to Etk::Entry
===================================================================
RCS file: /cvs/e/e17/libs/etk-perl/etk_test/etk_test.pl,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- etk_test.pl 23 Nov 2006 20:08:49 -0000 1.44
+++ etk_test.pl 13 Jan 2007 22:01:04 -0000 1.45
@@ -292,14 +292,16 @@
my $entry_normal = Etk::Entry->new();
$entry_normal->TextSet("Here is some text");
$table->Attach($entry_normal, 0, 0, 0, 0, 0, 0, TableHExpand | TableHFill);
+ $entry_normal->SizeRequestSet(140, -1);
- my $button = Etk::Button->new("Print Text");
- $table->Attach($button, 1, 1, 0, 0, 0, 0, TableNone);
+ my $image = Etk::Image->new(DocumentPrint, SizeSmall);
+ $entry_normal->ImageSet(ImagePrimary, $image);
+ $entry_normal->AddClearButton();
my $label_normal = Etk::Label->new("");
$table->Attach($label_normal, 0, 1, 1, 1, 0, 0, TableHExpand | TableHFill);
- $button->SignalConnect("clicked", sub {
+ $image->SignalConnect("mouse_click", sub {
$label_normal->Set( $entry_normal->TextGet() )
});
@@ -315,7 +317,7 @@
$password_entry->PasswordModeSet(1);
$vbox->Append($password_entry, BoxStart, BoxFill, 0);
- $button = Etk::CheckButton->new("Password Visible");
+ my $button = Etk::CheckButton->new("Password Visible");
$vbox->Append($button, BoxStart, BoxFill, 0);
$button->SignalConnect("toggled", sub {
$password_entry->PasswordModeSet( !
$password_entry->PasswordModeGet() )
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs