On 7/3/05, Jan Hudec <[EMAIL PROTECTED]> wrote:
>
> 1) G_BROKEN_FILENAMES environment variable. Glib thinks filenames are in
>unicode independent of locale, unless this is set.
> 2) The string in Perl is already marked as "utf-8", though it is not and
>the conversion is doing something wro
I am using Glib::filename_to_unicode() but I found something wrong..
My locale is it_IT, but if the filename contains an euro sign (€) it
is displayed in Nautilus, but my application is not working.
Try this: print Glib::filename_to_unicode('€');
...it doesn't work. This behaviour is not only fo
On 7/1/05, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> Yes! Just do
>
> Gtk2->main_iteration while Gtk2->events_pending;
as I said, my application uses a Gtk2::Helper->add_watch function, so
control already rests with the main loop, and it is not necessary to
run main_iteration..
_
On 7/1/05, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> It was the "I don't know if I could do this with
> Gtk->main_iteration" that set me off. The original poster said he
> was adding rows to the tree as they came in, and I read this to
> mean that the individual rows come in quickly, it just takes
On 7/1/05, A. Pagaltzis <[EMAIL PROTECTED]> wrote:
> You are programming by coincidence[1]. If you actually understood
mmhh. Don't know. I have briefly just described a little detail, but
the whole application is complex.
Anyway, I'll have a look. Thanks.
_
On 7/1/05, Jan Hudec <[EMAIL PROTECTED]> wrote:
> Wow, that's complex! Simply running Gtk2->main_iteration while
> Gtk2->events_pending; between reading the lines is easier and does the
> job just as well.
Yes, but I needed the user to be free to start using all program
features, even while the t
I have recently done this by forking the "estraction" subroutine in a
thread. The thread sends data out in a socketpair and the main
application (by a Gtk2::Helper function) read the socket and fills the
TreeView in real time, as data is coming out from the thread.
_
On 6/30/05, The Saltydog <[EMAIL PROTECTED]> wrote:
>
> I am using Gtk2 v.2.6.4, but I don't have Gtk2::AboutDialog... I have
> read that Gnome2::About is becoming obsolete, but I have no substitute
> and I'm too lazy to write a new one just to use it once..:-)
>
On 6/30/05, muppet <[EMAIL PROTECTED]> wrote:
> Also, Gnome2::About has been replaced, as of gtk+ 2.6, by Gtk2::AboutDialog.
> I don't have gtk+ 2.6 on this desktop, so i can't really tell you if it
> exhibits the same behavior.
I am using Gtk2 v.2.6.4, but I don't have Gtk2::AboutDialog... I hav
On 6/30/05, muppet <[EMAIL PROTECTED]> wrote:
> Could you be more specific? What is the "oddity"? Possibly post a small
> example?
Sorry, I made confusion.
Using
$ga->set_transient_for($main_window)
doesn't change anything in the behaviour of the window. Main window
remains clickable and work
Is there any way to make a Gnome2::About dialog "transient" to main
window? I have tried set_transient_for($window) but it introduces some
oddity..
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
Where could I read the basics to add an entry into nautilus
context-menu froma gtk2-perl application?
Thanks..
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
I am experiencing different behaviour of my application on two PC. The
two PC have the same speed and RAM, both run the same distro version
(Ubuntu Hoary), but one with kernel 2.6.10-k7 and the other with
kernel 2.6.10-i386
The application is a multithreaded Gtk2 program, which forks around 20
pro
Is there some hidden trick I don't know, to display a pixbuf in a TreeStore??
This is what I did:
the model:
$model = Gtk2::TreeStore->new (qw/
Glib::String Glib::String Gtk2::Gdk::Pixbuf Glib::String
Glib::String Glib::String / );
set the column:
On 6/23/05, ofey aikon <[EMAIL PROTECTED]> wrote:
> ... May or may not be of use to you :)
Very useful. Thank you!
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
On 6/20/05, The Saltydog <[EMAIL PROTECTED]> wrote:
> On 6/20/05, muppet <[EMAIL PROTECTED]> wrote:
> >
> > The widget parameter to paint_box() is used by the theme implementation to
> > get
> > hints, either from style properties or from the type of the o
On 6/22/05, Peter Haworth <[EMAIL PROTECTED]> wrote:
> Do you know the path, or at least the depth of each node you're
> adding? If so, you could create placeholder nodes for not-yet-existing
> paths, and fill in their details as you work them out.
Yes, I know the depth of each node, so I could cr
On 6/22/05, Quentin <[EMAIL PROTECTED]> wrote:
> for using a perl array to store the data, there is only my program :
> qsplayer (still looking for another name ;)), that you can find there :
> http://squentin.free.fr
Thank you. I'll have a look.
> But if you want to display a partially read tree
On 6/22/05, Quentin <[EMAIL PROTECTED]> wrote:
> It's not what I meant, I meant keep all the data in a perl array/hash,
> and use a custom store that get the data from the perl array/hash.
> That way you don't have to fill the store, the data are already there.
> It's much more complex but it can f
On 6/22/05, Quentin <[EMAIL PROTECTED]> wrote:
> A _much_ more complex way, would be to keep the data in a perl array,
> and use a custom store. But you have to tell the store when you
> change/add/remove a row in the perl array. Scrolling would be slower,
> but the initial filling would be faster
I need to populate a TreeStore from a flow of data coming from a pipe.
Each line of data will also have an associated "depth" value so that I
can understand the depth in the tree.
Populating the TreeStore would not be a problem, but the data is
arriving in the pipe in reverse-order. Can I populate
On 6/20/05, muppet <[EMAIL PROTECTED]> wrote:
>
> The widget parameter to paint_box() is used by the theme implementation to get
> hints, either from style properties or from the type of the object itself.
> The "what sort of box" hint is the string "trough", and my guess is that your
> theme's im
On 6/20/05, Torsten Schoenfeld <[EMAIL PROTECTED]> wrote:
> On Mon, 2005-06-20 at 10:26 -0400, muppet wrote:
> don't know what the correct behavior is, but passing undef instead of
> $widget in the first paint_box call seems to work.
yes it does work (also the original version worked, apart the
m
On 6/20/05, muppet <[EMAIL PROTECTED]> wrote:
> What theme are you using? Some themes are notorious for making assumptions
> about what type of widget is calling what rendering function...
Ubuntu Human theme. But it should not depend upon the theme...
What is that GtkRange the application is cla
On 6/20/05, muppet <[EMAIL PROTECTED]> wrote:
> What's interesting is that your error message (from the earlier post) mentions
> a GtkRange, a type which doesn't appear anywhere in the example you cited.
> Are you sure the bug isn't in your adaptation of the example code?
I have just tested again.
On 6/20/05, Torsten Schoenfeld <[EMAIL PROTECTED]> wrote:
> Please search the docs before
> asking the list.
I'm really sorry. Maybe it is still too early for me this morning..
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/
Is there a way to hide the header row in a TreeView?
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
On 6/19/05, muppet <[EMAIL PROTECTED]> wrote:
> The example works for me without any warnings. What versions of gtk+
> and Gtk2 do you have?
~ $ perl -MGtk2 -e 'print "$Gtk2::VERSION\n"'
1.061
~ $ perl -MGtk2 -e 'print "$Gtk2::VERSION\n"; print join(".",
Gtk2->get_version_info)."\n";'
1.061
2
On 6/19/05, ofey aikon <[EMAIL PROTECTED]> wrote:
>
> Won't Gtk2::Ex::Simple::Tree or Gtk2::TreeView do the job ?
Yes, I have started with TreeView.
I was studying the cellrenderer_progress example in cvs:
http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/examples/cellrenderer_pro
I am planning an application in which I need to display data in a List
window. Some element should be expandable/collapsable and every
element in the list should represent a string and a graphical colored
bar...
Any suggestion before starting on the wrong way? I am afraid that
SimpleList is not th
On 6/10/05, zentara <[EMAIL PROTECTED]> wrote:
> Here is a simple example.
maybe I am doing something wrong, 'cause I had the pbar, but I also
had hundreds of these messages:
Gdk-CRITICAL **: gdk_draw_line: assertion `gc != NULL' failed at
./test line 1056.
Gdk-CRITICAL **: gdk_draw_line: assert
I have seen a progress bar that bounces from side to side...
How can I implement it in my perl-gtk2 application?
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
I have a column of different pixbufs in my SimpleList. Now I am in the
need of displaying a tooltip each pixbuf, but how can I do this as
they are not widgets?
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/g
Hi,
im my Perl-Gtk2 app I need to give the main window a fixed
size-request, in order to display all columns of a SimpleList widget.
I made several tries, but as users can have different font resolution
settings (90dpi, 96dpi, or more) the displayed window can or cannot
show all the items.
How ca
I need short instructions (maybe a small sample code) to implement a
column of little icons into my Gtk2::SimpleList
Thank you all.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
ting the scrambled text...
Is something related to arrays? Should I remove all the text from the
array and embed it in the code?
On 5/27/05, The Saltydog <[EMAIL PROTECTED]> wrote:
> If I remove that line and leave utf-8, I don't see the chars on my
> system. In any case, I am spe
If I remove that line and leave utf-8, I don't see the chars on my
system. In any case, I am speaking of localizations like italia,
german, dutch and french, and they all are in the iso-8859-1 area...
On 5/27/05, Boštjan Špetič <[EMAIL PROTECTED]> wrote:
> > I have localized my Gtk2 app in this
Hi all,
I have localized my Gtk2 app in this way:
use Locale::gettext;
use POSIX qw(setlocale);
use Encode qw(decode);
sub _ {return decode("iso-8859-1",dgettext( PACKAGE,$_[0]));}
setlocale(LC_MESSAGES, "");
textdomain(PACKAGE);
$string = _("Generic message");
38 matches
Mail list logo