.
Unfocused: <https://ibin.co/2uf5BSLdYLd3.png>
Focused: <https://ibin.co/2uf5X016PRaN.png>
Gtk+ themes can be very complex. What would I likely need to edit and
where to change the background colour when receiving the input focus to
something else?
Yours truly,
--
Kip Warner -- Sen
.
Respectfully,
--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
. I'll try the other mailing list.
Take care,
--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman
.
Respectfully,
--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
From 1caaa90300d03f1c3d0f2953887e8f7057f580f3 Mon Sep 17 00:00:00 2001
From: Kip Warner k...@thevertigo.com
Date: Fri, 9 May 2014 11:27:33 -0700
Subject: [PATCH] gio: Better API
/object
/child
/object
/interface
I am using xgettext as follows, without any foo.pot being generated
against the above minimal:
$ xgettext --language Glade minimal.glade --output=foo.pot
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed
On Wed, 2013-08-07 at 00:08 -0700, Kip Warner wrote:
Hey list,
I'm not sure if this is a bug in xgettext or not, but I figured I'd run
it by this list before possibly posting on bug-gett...@gnu.org.
I have a sample GtkListStore declared within a Glade file containing a
single row with one
the region blends with the rest of the user's theme.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman
it fill
the full width, but only after a certain amount is met.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org
the mess I had before. It's much simpler and
doesn't require the client of ScalableImage to have to know or do as
much.
Take care,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list
.
blocking : TRUE if you want GTK+ to block if no events
are pending
Returns : TRUE if gtk_main_quit() has been called for
the innermost mainloop
Take care,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
On Wed, 2013-06-26 at 14:32 -0700, Kip Warner wrote:
On Wed, 2013-06-26 at 19:02 +0200, Bogdan Lotko wrote:
Hello,
Is it possible to wait for GMainLoop event without processing them?
the following pseudo-code illustrates the problem:
while( notEndLoop )
{
waitForEvent
are trying to do?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
___
gtk-list mailing list
gtk-list@gnome.org
https
not reading it right, but how can a caller use the
component functions to do what he is asking, namely check if there are
events, blocking until there are some, and doing so without polling?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
On Wed, 2013-06-26 at 19:04 -0400, Paul Davis wrote:
while (1) {
call prepare
call query, which will block.
do stuff.
then call dispatch.
do more stuff.
}
g_main_context_query () polls.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
good enough for him, I don't know. But if he doesn't want
polling, then it won't be.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
On Wed, 2013-06-26 at 19:23 -0400, Paul Davis wrote:
by definition you cannot determine if events are ready without something
semantically equivalent to poll(2). whether or not you block in that
poll-equivalent thing is a different story.
You knew what I meant.
--
Kip Warner -- Software
the
callee does.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
___
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org
, are you attempting to do this from a secondary thread?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part
___
gtk-list mailing list
gtk
.
The trick at this point is to try and get the AspectFrame and
DrawingArea to resize and expand in the right way which seems very
difficult so far.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk
the allocated space as much as possible, maintaining the aspect ratio.
My code draws the image correctly, but it doesn't resize as the parent
window is resized:
http://pastebin.com/6LEzFk8A
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
wasted space between the banner image and the bottom half.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman
it is enlarged
itself. You have to pass expand=True, fill=True.
Hey David. Like I said to Colomban already, I already tried that.
https://mail.gnome.org/archives/gtk-app-devel-list/2013-June/msg00134.html
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
advise, but the image is still taking up too much room in the
vertical GtkBox above and below it. See all the extra space above and
below it I'd like collapsed:
http://en.zimagez.com/zimage/box36.php
Here is my code:
http://pastebin.com/mtVNsPrb
Thanks a lot,
--
Kip Warner
up with so far. The image paints on the
DrawingArea properly, but it doesn't resize at all when I resize the
parent window.
http://pastebin.com/Mj7bTJLh
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
, Gdk pixbuf,
subclassing and overrides. You'd think something like this would be
really straightforward. =(
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app
://pastebin.com/6LEzFk8A
If you need your widget to be a GtkImage subclass things will likely
turn hairy because GtkImage is not scaleable, all its methods think it
is not scaleable so you will end up fighting the implementation of the
widget.
Yup.
--
Kip Warner -- Software Engineer
OpenPGP
. Then, the image scaling is just a
canvas drawing operation and has no effect on the AspectFrame size, and
shouldn't cause recursive scaling.
I don't know much about the canvas. But I'll try it and get back to you.
Thank you for your help,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed
of anything, whereas
the GtkImage does not.
I'll keep looking through his code and fiddling with my own, but any
help appreciated.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel
On Thu, 2013-06-20 at 17:59 -0700, Kip Warner wrote:
On Wed, 2013-06-19 at 14:03 +0300, אנטולי קרסנר wrote:
I have another idea for you: In the Gnome Mines game (which you can
probably find on git.gnome.org) written in Vala, the game board has a
fixed ratio and resizes with the window
connection on line 34, the aspect ratio doesn't resize at all, but just
stays fixed, albeit at the correct aspect ratio.
http://pastebin.com/jFCcWyig
Ugh, *slams head on desk*
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
and doesn't stop. I'm
guessing what's happening in the draw signal callback is I am resizing
the image widget, which in turn is resizing the AspectFrame widget,
which is in turn resizing the image widget, etc...
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
with
Python.
https://github.com/jcupitt/huebert/blob/master/huebert/controller.py
That's so cool. That's a great gadget too.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list
On Fri, 2013-06-14 at 15:08 +0900, Tristan Van Berkom wrote:
On Fri, Jun 14, 2013 at 8:28 AM, Kip Warner k...@thevertigo.com wrote:
On Thu, 2013-06-13 at 08:59 +0100, jcup...@gmail.com wrote:
Hi Kip,
Hey John,
There are two easy ways to do a long operation in Python.
First
the introspection data knows that the method should have provided two
out parameters, you'd think it would have caught this more gracefully
with an exception than a core dump? But I guess that's probably nothing
you or I can do about that right now.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed
for you could be difficult, but I'll try that
as a last resort. Maybe you have some debugging tips? I'm finding it
hard to debug in Python compared to all the many frontends to GDB for
native code.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
typing. But you
might raise the issue with the pygtk folks [1].
Done. Thanks.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https
signal callback.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
is
taking appears to be the correct size as I resize its parent. However,
the actual image pixels do not appear to be painted.
Any help appreciated,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
to the GtkAssistant page as
such...
page._bannerImage = BannerImage() #Gtk.Image()
page.pack_start(page._bannerImage, False, False, 0)
page.reorder_child(page._bannerImage, 0)
Thanks for your help.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
(). I get an assertion fail buried
deep somewhere in python-gi...
ERROR:../../gi/pygi-closure.c:494:_pygi_closure_set_out_arguments: code
should not be reached
One thing is clear. The latter do_get_request_mode() is in fact being
queried.
--
Kip Warner -- Software Engineer
OpenPGP
of the long job. This
happens even though I do pump the message queue during the long job via
the usual...
while Gtk.events_pending():
Gtk.main_iteration()
Thanks a lot for your help.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
the prepare signal callback
immediately, as opposed to en-queueing via GObject.idle_add(), then the
GUI doesn't refresh throughout the duration of the long job, even though
I pump the message queue.
Any help appreciated.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
Hey list,
Is there a signal I should be listening for that is emitted when a page
on my GtkAssistant is visible for the first time? By visible, I mean has
already been constructed (e.g prepare signal) and is now visible. Each
page in my GtkAssistant is a GtkBox containing child widgets.
--
Kip
+ in C or Gtkmm with C++.
I think it might be easier at this point if I just fixed the Python code
I've written thus far rather than refactoring it with custom overrides.
The code mostly works, it's just the scrollbar issue that's really
annoying. Any help really appreciated.
--
Kip Warner -- Software
appreciated.
Respectfully,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
README, it doesn't have its
own website either.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk
On Thu, 2013-05-16 at 19:04 -0700, Kip Warner wrote:
Hey list,
I'm getting this very rare and unpredictable error which is difficult to
replicate. I have a secondary Python worker thread which very rarely
creates the following error:
** (Main.py:32524): CRITICAL
On Thu, 2013-05-30 at 20:45 -0700, Kip Warner wrote:
On Mon, 2013-05-27 at 01:01 -0700, Kip Warner wrote:
Ok, I think I've got it. I put all the widgets and boxes in a page into
a single vertical oriented GtkBox with its contents vertically centred
and the box set to expand. Then I insert
On Wed, 2013-05-29 at 22:41 -0700, Kip Warner wrote:
On Wed, 2013-05-29 at 18:58 +0800, Arnel A. Borja wrote:
Remove GtkScrolledWindow (right-click the recoveryTerminal in the right
sidebar then select Remove Parent in the popup menu) then add a GtkScrollbar
to box31. Make sure
On Mon, 2013-05-27 at 01:01 -0700, Kip Warner wrote:
Ok, I think I've got it. I put all the widgets and boxes in a page into
a single vertical oriented GtkBox with its contents vertically centred
and the box set to expand. Then I insert the banner widget into the
parent box. It seems to work
to the bottom.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
on the parent container of the VTE widget need tweaking
because the top of the terminal is still clipped:
http://en.zimagez.com/zimage/screenshot-13-05-28-102127pm0.php
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
, but none of them appear
to be sunken.
Thank you,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk
On Thu, 2013-05-23 at 11:13 +0100, jcup...@gmail.com wrote:
On 23 May 2013 01:18, Kip Warner k...@thevertigo.com wrote:
http://pastebin.com/821dmjKq
I think your scrolled window is being allocated the width of the page,
and then the image is falling to the left within that. Try without
.
Tried that already, both progmatically and via Glade. Still no love. =(
http://pastebin.com/821dmjKq
The decoratePage() method is invoked when the page is registered into
the assistant via registerPage().
Thanks a lot for your help. This issue has been bugging me for a while.
--
Kip Warner
, but keeping the
other child box below it still vertically centred? I've tried wrestling
with Glade, but I can't figure out how to do it.
Thanks,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app
preference).
'b' is definitely a hack, but it might do the trick if I can get it to
work. I am trying the following,
assistant.stop_emission(apply)
, except that the assistant still advances to the next page regardless.
Hmm...
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail
. If the transition is valid, I automatically switch to
the page after the dummy one. Else, I switch back to the original page.
Hey Sébastien. Thanks for the suggestion. I think that's a good hack and
I might give it a try if I can't get Tristan's stop_emission(apply)
logic to work.
--
Kip Warner
' on the page containing
the apply button. By ghost page, I mean clicking previous goes back, but
the page doesn't actually change, only on the left page list in the
assistant.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
. But one thing is clear, I do call the following before doing
anything with threads...
GObject.threads_init()
Gdk.threads_init()
Any help appreciated =)
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
throbber widget. Perhaps you should either
use a Gtk throbber, or study the throbber widget code and implement
something along the same lines with your own graphic.
Thanks Michael, but as with Chris' post, yours was not particularly
constructive either.
Take care,
--
Kip Warner -- Software
of the threads (and the
operation is about 10 times faster than the first example).
numpy.sum(numpy.arange(100))
I'll definitely earmark numpy. It could be very useful in the future.
Thanks Simon.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
help in some way. Regards,
Colomban
Thanks a lot Colomban. Like before, your thoughts were very constructive
and useful.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing
() for Gdk.threads_add_idle()? I wonder why, or if
that's just coincidental and my machine is just better behaved today for
an unrelated reason.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel
don't think you can do that from the worker thread
and you mentioned it is not a good idea to do even if you could.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
if you have more than a handful of animated images instantiated
anywhere.
Thanks Andrew. Advice well taken and I'll be sure to consider giving
that a try.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
the worker thread, but I
didn't know if that was thread safe to do.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org
of the doubt. Perhaps I am doing something
unnecessary to block the loop which I should not do. Take a look at the
method defined at 287:
http://rod.gs/Sio
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
application. The animation is really too simple to warrant
Clutter or GStreamer, but enough to at least need basic transparency
and preferably 8 bit colour.
If anyone has any other suggestions, I'm all ears. Thanks.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http
see on my system, and perhaps everywhere at best, is GIF. Do you
have any suggestions for another approach to a simple animation that
supports transparency and more than 8 bit colour?
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
this that I knew about.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hey list,
I'm having issues with my Gtk+ assistant displaying the Finish button
prematurely. Under what conditions is the Finish button made visible?
I am using Python 3 and Gtk+ 3 via the GObject introspection interface.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail
remember to cc me.
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
.
Thanks for any help,
--
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
76 matches
Mail list logo