Greetings,
I want to announce a new gtk2-perl application I have been working on
last month.
Zim is a WYSIWYG text editor written in Gtk2-Perl. It aims at bringing
the concept of a wiki to your desktop. For example every page is saved
as a text file with wiki markup. Pages can contain links
content. Automatic testing of the GUI does not have
priority for me.
Thanks to all for all the positive responses :)
--
) ( Jaap Karssenberg || Pardus [Larus]| |0| |
: : http://pardus-larus.student.utwente.nl/~pardus| | |0|
) \ / (
gnome implementation).
Cheers!
--
) ( Jaap Karssenberg || Pardus [Larus]| |0| |
: : http://pardus-larus.student.utwente.nl/~pardus| | |0|
) \ / ( |0|0|0|
",.*'*.," Proud owner of &q
d
with all gtk instalations. Is there an "official" list of stock icons to
use, or should I package stock icons with the application ?
Thanks for the info,
- Pardus
--
) ( Jaap Karssenberg || Pardus [Larus]| |0| |
oper.gnome.org/doc/API/2.0/gtk/gtk-Stock-Items.html
--
) ( Jaap Karssenberg || Pardus [Larus]| |0| |
: : http://pardus-larus.student.utwente.nl/~pardus| | |0|
) \ / ( |0|0|0|
",.*'*.," Pr
cific and F:MimeInfo doesn't die when the database is missing.
We can take this discussion outside the list if it is just specific to
File::MimeInfo.
If there are any questions about this module people can mail me personally.
--
) ( Jaap Karssenberg || Pardus [L
automatically. Creating a new page is as easy as linking
to a non-existing page. This tool is intended to keep track of TODO
lists or serve as a personal scratch book.
The homepage can be found at http://zoidberg.student.utwente.nl/zim/
--
) ( Jaap Karssenberg || Pardus [Larus
Greetings,
This is a slightly off topic post because it is not about Gtk2, but it
is about desktop bindings for perl so I figured it might be of interest
for this list.
I released a new version of File::MimeInfo onto CPAN which is updated to
the 0.13 version of the shared-mime-info specifica
Hello,
I try to subclass Gtk2::HBox and I want to handle size allocation
myself. I figured overloading size_request() and size_allocation() would
do the trick, but these methods don't get called when the widget is
shown :( I've included my code below, does anyone have a suggestion what
I do
_INSTANCE for some bootstrap thingies.
..8<..
-- Jaap
--
) ( Jaap Karssenberg || Pardus [Larus]| |0| |
: : http://pardus-larus.student.utwente.nl/~pardus| | |0|
) \ / ( |0|0|0|
",.*'*.,"
epresents a path
with a list of buttons, like the path in the gtk filechooser. I
translated part of the C code I found in the Thunar filer project to
pure perl. Got all the size_allocate stuff working :) Probably it will
find it's way to CPAN in the near future.
--
) ( Jaap Kars
Jaap Karssenberg wrote:
I'm trying to get a treeview to activate a row on single-click instead
of double-click.
Answering my own question for completeness of the mail archive:
Instead of connecting to the button_release_event connect to
the TreeSelection "changed" signal
Hi,
For zim I'm working on a Gtk2::Ex::PathBar class to implement a path bar
that looks like the one that is found in the gtk filechooser. Now I have
a strange bug. My implementation works perfectly fine on my own system
which runs archlinux. But I now get bug reports from people with gentoo
Raf D'Halleweyn (list) wrote on 10/30/2005 09:19 PM:
Maybe I don't understand what you are trying to do, but why don't you
try sub-classing from HBox. HBox should take care of all the size
calculations.
I wrote a pathbar widget that looks like a hbox with buttons but when it
gets bigger than
muppet wrote on 10/30/2005 11:06 PM:
... 8< ...
What versions of gtk+ and Gtk2?
Works on:
archlinux gtk+ 2.8.6 gtk2-perl 1.101 (my default system)
Doesn't work on:
Gentoo gtk+ 2.4.14 gtk2-perl 1.101 (my debug system)
Minislack gtk+ 2.4.0 gtk2-perl 1.082 (James Muir)
Debian, gtk+ 2.6.1 gtk2-p
Jaap Karssenberg wrote on 10/31/2005 02:04 PM:
muppet wrote on 10/30/2005 11:06 PM:
I instrumented your code with some calls to
Glib::Object::signal_add_emission_hook() (from Glib 1.10x), ran the
code in both sandboxes, and compared the output. For some reason,
the older gtk+ (which
muppet wrote:
Jaap Karssenberg said:
Ok, the problem is not that propagate_expose doesn't work, the problem
is that my box object doesn't get expose events in the first place. I
tried adding "expose_mask" for my box object but that didn't help. Any
other suggestions on
Greetings,
I overloaded Gtk2::TextBuffer to add some more "high level" methods for
dealing with the parse trees I use in zim, as well as enforcing edit
modes and adding an undo-stack. I just followed Glib::Object::Subclass
using INIT_INSTANCE etc..
Now I get this warning every time a new buf
muppet wrote:
On Nov 4, 2005, at 7:54 AM, Jaap Karssenberg wrote:
Gtk-CRITICAL **: set_table: assertion `buffer->tag_table == NULL'
failed at lib/Zim/Components/PageView.pm line 447.
That warning appears to come from the set_table() helper function in
gtktextbuffer.c. From wh
muppet wrote on 11/04/2005 04:13 PM:
Jaap Karssenberg said:
... 8< ..
Maybe I should provide a test script, maybe next week.
That would help. I can't reproduce with a trivial script. (Glib & Gtk2
1.081, gtk+ 2.4.14 and glib 2.4.7)
... 8< ..
Ok, it appears that I should n
Hi,
I was wondering which signal I need to intercept if I want to know when
the desktop exits while my application is still open. I tried catching
SIGHUP, SIGTERM and SIGKILL but no luck so far. (The obvious purpose of
this is to save the state of the application before it exits.)
I know thi
zentara wrote on 11/29/2005 06:54 PM:
Jaap Karssenberg wrote:
I was wondering which signal I need to intercept if I want to know when
the desktop exits while my application is still open. I tried catching
SIGHUP, SIGTERM and SIGKILL but no luck so far. (The obvious purpose of
this is to save
Hi,
Did anyone look into packaging perl/gtk applications for windows ?
I have some users that would really like a package that "Just Works"
(when perl was installed already).
I installed my application manually on one system but it involved
manually unzipping a lot of dll's which is quite obsc
Stephan Brunner wrote:
I set up the following configuration:
On the "build"-machine (full Gtk, gtk-perl installed), I use
pp -x -o foo.exe -M Glib -M Gtk2 -l c:\perl\site\lib\auto\Glib\Glib.dll -l c:
\perl\site\lib\auto\Gtk2\Gtk2.dll foo.pl
(all on one line, of course, and you might have to ad
Hi,
I recently discovered the pleasures of working with Gtk2::UIManager. I
like it so much that I dropped backward compatibility for gtk < 2.4.0
for my applications.
Now I'm thinking of a module which I would call Gtk2::Ex::FormManager
(although suggestions are welcome), which would do for m
Jörn Reder wrote:
That's very similar to what Gtk2::Ex::FormFactory does. You can take a
look at the documentation here:
http://www.exit1.org/Gtk2-Ex-FormFactory/
Basic principle is to declare the data model resp. the objects of your
application, build your dialogs out of several widgets an
Hi,
I noted that there is no equivalent of gtk_bindings_* in the perl api.
But these methods are also not mentioned in the api document as missing.
Am I missing something or does the perl api lack a method to set
keybindings ?
At the moment I solve adding extra keybindings by using the
"key
zentara wrote:
I was wondering if there was a way to filter out the line numbers
upon a selection or copy event? Is there some trick to tag some
text so it is visible to see, but invisible to a copy/selection?
You could use GtkSourceView (cpan Gtk2::SourceView). It features
linenumbers in a m
Hi,
I got a strange bug report for my application which I think might be a
problem with gtk and/or gtk-perl. All input is welcome.
The code snippet where it goes wrong is:
my $dialog = Gtk2::Dialog->new(
$title, undef,
[qw/modal destroy-with-parent no-separator/]
Hi,
I would like to add postscript output / printing to my application. Is
there a class that can convert the contents of a TextBuffer into
postscript ?
Thanks.
-- Jaap <[EMAIL PROTECTED]>
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http
Szabó Géza wrote:
I would like to get informed how it is possible to save the content of
TextView to some format keeping document file (eg. rtf, html)? I have
found examples but just to simple text file saving. I would like to save
even pictures on the TextView get saved. (I hope it not complic
r or
are there any known problems with this behavior ?
Thanks,
-- Jaap Karssenberg <[EMAIL PROTECTED]>
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
TextView widgets to fill in the table cells. This could become fairly
complicated. (Of course one could also use a TreeView instead of a
table, but that doesm't change much.)
-- Jaap Karssenberg <[EMAIL PROTECTED]>
___
gtk-perl-list maili
.
I would expect that "copy()" always initializes a new perl object.
Any suggestions ?
-- Jaap Karssenberg <[EMAIL PROTECTED]>
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
P.S.
I forgot to name my versions:
gtk2 2.8.16
gtk2-perl 1.102
I fixed my problem now by the following work around:
I assign a key into the Pixbuf perl object $pixbuf->{_exists} = 1 then
when constructing a new one if the copy() function returns an object
with this key set I call the c
Hi Muppet,
The pixbuf thing appears to be have been a coding mistake on my side -
sorry to have wasted your time. A friend of mine spotted it and it seems
to me like a loophole in the "strict" pragma.
What I was doing was something like:
use strict; #!!!
sub insert_image {
my ($
Hi,
I try to add a number of radio actions to a menu without setting one of
them active yet. (The reason for this is that I want the "on_change"
callback to be called when I later set the default value from the
applications config file).
The C api reference say about the "value" argument to "a
Hi,
In my opinion there are two issues here
1) you want an api to bind data to a form
2) you want an api to quickly create new forms
I think glade can be used very well for issue #2, but you can just as
well write your own xml-2-gui module in no time. As other pointed out in
this discussion,
Ratcliffe, Jeffrey (Peters) wrote:
> Here is my test code. I want the dialog to be displayed and the label to be
> updated by the while loop. However, as listed, the dialog is never displayed.
> And of course if I make it model and add $dialog->run, then the while loop
> never gets run.
>
> What
Dirk Koopman wrote:
> Not all the size requests are being honoured. Specifically the button
> called 'book_on'. As you can see its width has been expanded even though
> the vbox is created $vbox->new(0, 0) the packing call is
> $vbox->pack_start($button, 0, 0, 10). I don't want the button that big.
Dieter Schicker wrote:
> I'm new to Gtk2 (not to Perl) and I want to kindly ask if someone can
> point me to some good docs/examples/tutorials about gtk2-perl. I looked
> at the "official" ones but IMHO they are not very exhaustive for a
> newcomer.
>
What I do is I look at the documentation fo
Jeffrey Ratcliffe wrote:
> Apologies for the fact that this is some way off topic, but I can't
> find the answer via Google:
>
> A user has requested the option to send the PDF output produced by my
> Gtk2-Perl application using the default email client.
>
> Is there any way of digging out, first
Hi,
Hmmm looks like "$window->set_policy()" should be available to set that
behavior [1]. However perl Gtk2::Window does not seem to have a binding
for this call. The C docs suggest to use set_resizable instead of
set_policy, but no mention there of any auto behavior. Anyone knows why
this cal
Hi,
After install you have the pod files, try running pod2html if you want
to read them in a browser.
Regards,
Jaap
Denis wrote:
> Hi all,
>
> Can someone tell me how to generate (even better download :-) ) the
> documentation of gtk2-perl in html ?
> I mean I would like to have something li
pEntry and MimeInfo classes
to generate an "open with" menu for an arbitrary file (e.g. to be used
in a context menu) and an "open with" dialog (which allows setting a
custom command etc.). Have a look at Gtk2::Ex::DesktopEntryMenu in the
zim source code [1] to get an idea how t
45 matches
Mail list logo