Re: Run a GTK application without desktop environment

2016-03-19 Thread Jasper St. Pierre
te a kiosk there is *no need* to have a window manger. > > /gh > > Den 2016-03-18 kl. 06:00, skrev Jasper St. Pierre: >> I highly recommend against this. A window manager should be around to >> manage windows, since a lot of functionality to applications is >> provided b

Re: Run a GTK application without desktop environment

2016-03-19 Thread Jasper St. Pierre
I highly recommend against this. A window manager should be around to manage windows, since a lot of functionality to applications is provided by the WM. Having it missing could cause strange bugs. Please just use a lightweight window manager like Matchbox or metacity. On Thu, Mar 17, 2016 at 9:3

Re: Is gtk-fb still actively maintained?

2016-03-12 Thread Jasper St. Pierre
Modern Xorg is actually a lot more lightweight than you might think. You might be surprised. On Sat, Mar 12, 2016 at 7:34 AM, Woody Wu wrote: > > > On Saturday, March 12, 2016, Emmanuele Bassi wrote: >> >> Hi; >> >> On 12 March 2016 at 15:07, Woody Wu wrote: >> > Does the ability of gtk can run

Re: Support of Joystick/Gamepad in GTK+ 3.18

2016-01-16 Thread Jasper St. Pierre
Hey. So, joypad support is usually special. Most other input devices are usually demultipliexed through concept of "window focus" (e.g. keyboard input goes to the window focus, mouse input goes to the window the mouse is currently over), but joypad is usually exclusively controlled by one app at a

Re: Can't read stdout of bash with GSubprocess on MSYS2

2015-09-28 Thread Jasper St. Pierre
We have a helper that does questionable things during the spawning process on Win32. This second helper is likely to be what's broken under MSYS2. See https://git.gnome.org/browse/glib/tree/glib/gspawn-win32.c#n22 On Mon, Sep 28, 2015 at 12:33 AM, Gang Chen wrote: > Yes, I suspect MSYS2 or bash

Re: Composite window with GTK+3.

2015-08-26 Thread Jasper St. Pierre
That sounds about right, yes. On Wed, Aug 26, 2015 at 9:51 PM, Igor Korot wrote: > Hi, Gian, > > On Mon, Aug 24, 2015 at 4:56 AM, Gian Mario Tagliaretti > wrote: >> On 24 August 2015 at 05:49, Igor Korot wrote: >> >> Hi Igor, >> >>> So then this path becomes obsolete, since it is compiled into

Re: Composite window with GTK+3.

2015-08-23 Thread Jasper St. Pierre
rot wrote: > Jasper, > > On Sun, Aug 23, 2015 at 11:29 PM, Jasper St. Pierre > wrote: >> Yes, you usually run glib-compile-resources. >> >> A GitHub code search for that turned up this, which seems simple >> enough: https://github.com/qiubit/gtk-snake > > So t

Re: Composite window with GTK+3.

2015-08-23 Thread Jasper St. Pierre
Resource paths aren't filesystem paths -- the resource system compiles needed files and into the binary. On Sun, Aug 23, 2015 at 7:49 PM, Igor Korot wrote: > Hi, ALL, > On the page https://developer.gnome.org/gtk3/stable/GtkWidget.html, part > "Building composite widgets from template XML", the c

Re: margin documentation

2015-08-16 Thread Jasper St. Pierre
The margin is a set of extra pixels added around the edge of the widget. How many pixels are added is decided by this property. I suggest you simply try setting random values and see what happens. On Sun, Aug 16, 2015 at 2:42 PM, Igor Korot wrote: > Hi, > In the > https://developer.gnome.org/gtk

Re: gtk_drag_begin_with_coordinates() question

2015-08-16 Thread Jasper St. Pierre
Huh, it's strange the documentation didn't get properly parsed. There's a comment in the source that tells you it's in the coordinate space of the passed in widget: https://git.gnome.org/browse/gtk+/tree/gtk/gtkdnd.c#n2578 On Sun, Aug 16, 2015 at 1:27 PM, Igor Korot wrote: > Hi, > In the > http

Re: Desktop as transient window

2015-08-10 Thread Jasper St. Pierre
raise the application along with it. Out of curiosity, since I'm not aware of OS X, what's the issue with using transient-parents there? On Mon, Aug 10, 2015 at 10:01 AM, Paul Davis wrote: > On Mon, Aug 10, 2015 at 12:57 PM, Jasper St. Pierre > wrote: >> Hi Paul, >>

Re: Desktop as transient window

2015-08-10 Thread Jasper St. Pierre
Hi Paul, In recent GTK+ versions, GtkDialog emits a warning when it is mapped without a parent, saying that it is discouraged. See https://git.gnome.org/browse/gtk+/tree/gtk/gtkdialog.c#n776 On Mon, Aug 10, 2015 at 9:43 AM, Paul Davis wrote: > On Mon, Aug 10, 2015 at 12:42 PM, Paul Davis > wro

Re: Desktop as transient window

2015-08-10 Thread Jasper St. Pierre
You can either ignore the warning, or simply use a window that isn't marked as a dialog as that first window. On Mon, Aug 10, 2015 at 9:31 AM, Igor Korot wrote: > Jasper, > > On Sun, Aug 9, 2015 at 7:19 PM, Jasper St. Pierre > wrote: >> The desktop is not a window. It c

Re: Desktop as transient window

2015-08-09 Thread Jasper St. Pierre
, 2015 at 6:39 PM, Jasper St. Pierre > wrote: >> As mentioned, dialogs are designed to be parented to a specific >> window. As the warning says, this is discouraged (and might cause >> things like Wayland not to work correctly). You can ignore the warning >> if you wan

Re: Desktop as transient window

2015-08-09 Thread Jasper St. Pierre
un, Aug 9, 2015 at 3:00 PM, Jasper St. Pierre > wrote: >> The default transient window is NULL, so you don't have to do anything. > > OK, I did call "gtk_window_set_transient_for( dlg, NULL );", but still > got the warning > > GtkDialog mapped without a tran

Re: Desktop as transient window

2015-08-09 Thread Jasper St. Pierre
The default transient window is NULL, so you don't have to do anything. On Sun, Aug 9, 2015 at 11:59 AM, Igor Korot wrote: > Hi, ALL, > There is a function in GTK - gtk_window_set_transient_for() - which > sets the parent > window for the current one. > > Now the question I have is: is it possibl

Re: Documentation inconsistency

2015-08-05 Thread Jasper St. Pierre
I definitely think the wording can be improved. I'll take a shot at it later today -- thanks for the report. On Wed, Aug 5, 2015 at 7:38 AM, Igor Korot wrote: > OK, thx for explanation. > > On Wed, Aug 5, 2015 at 9:59 AM, Gergely Polonkai wrote: >> I must agree with Paul here. Try to look at the

Re: How do I convert this code?

2015-08-02 Thread Jasper St. Pierre
You can get the style context for a widget with gtk_widget_get_style_context(). On Sun, Aug 2, 2015 at 12:21 PM, Igor Korot wrote: > Hi, ALL, > In my GTK+-2 I have a following code: > > const GtkBorder* oldBorder = gtk_entry_get_inner_border(entry); > > Unfortunately this function is depr

Re: hyperactive resizing with CSD

2015-07-24 Thread Jasper St. Pierre
This is definitely a bug. It sounds like GTK+ is thinking the button is pressed when the mouse rolls over the window. Do you know if this happens with any other WMs besides xfwm? I'll take a look if I get some spare time. On Fri, Jul 24, 2015 at 6:19 PM, Allin Cottrell wrote: > Hello all, > > I'm

Re: Help casting void pointer to GtkWidget

2015-07-19 Thread Jasper St. Pierre
Well, you're passing something that isn't a GtkWidget to sig_con1. The type of the pointer should not matter as long as it points to a GtkWidget (some secret sauce under the hood is used to know whether it's a valid pointer or not). We would need to see what calls sig_con1 to debug further, but lo

Re: How to style a GtkLabel with CSS

2015-06-12 Thread Jasper St. Pierre
On Fri, Jun 12, 2015 at 7:26 PM, Stefan Salewski wrote: > On Fri, 2015-06-12 at 23:13 +, Gulshan Singh wrote: >> I actually asked in #gtk+ on Freenode, but didn't get any response. I >> asked >> again on the GNOME server, and I got an answer that worked: >> https://stackoverflow.com/questions/

Re: Outdated win32 bundle

2015-06-11 Thread Jasper St. Pierre
I can take a look at the gobject-introspection work. Bugzilla links? On Thu, Jun 11, 2015 at 10:57 AM, Ignacio Casal Quinteiro wrote: > > > On Thu, Jun 11, 2015 at 4:51 PM, Jasper St. Pierre > wrote: >> >> Would it be possible for me to fund / help maintain official GN

Re: Outdated win32 bundle

2015-06-11 Thread Jasper St. Pierre
Would it be possible for me to fund / help maintain official GNOME Win32 bundles and an SDK? I'd love to improve Windows support of GTK+, but I'm never sure where the status is. Last time I tried jhbuild it failed on something early on -- I believe fontconfig, so that was a bummer. On Thu, Jun 11,

Re: In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread Jasper St. Pierre
and try to balance it such that each quadrant has 5-10 objects. You spend a lot more time building the quadtree but it will significantly cut down on lookup time. On Mon, May 11, 2015 at 2:37 PM, Paul Davis wrote: > > > On Mon, May 11, 2015 at 5:30 PM, Jasper St. Pierre > wrote: >

Re: In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread Jasper St. Pierre
Computers are *fast*. It turns out that simply recursively walking down all children is fast enough for most cases. It's a complicated walk, but it's entirely doable. You can see the code for the walk here: https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.c#n7247 More complex data structures,

Re: Repost question from 2013. I have same problem.

2015-05-08 Thread Jasper St. Pierre
There's a few bugs here. First, you forgot to unref the builder, which keeps a reference to all its objects. Second, windows must be destroyed with gtk_widget_destroy to ensure they are properly cleaned up. Windows, as toplevel widgets, need to interact with the windowing system at any time, even i

Re: How to get Colors?

2015-05-04 Thread Jasper St. Pierre
There are lots of widgets which don't (yet) respect all CSS properties. That's because when you try, you break themes which do something like: "* { background: gray; }", and some widgets weren't expecting to get a gray background. We're trying to make more widgets respect CSS, but it's a careful b

Re: Memory leak in gdbus-codegen generated code

2015-02-10 Thread Jasper St. Pierre
I don't see *how* we can clean it up. We could register an atexit handler which tears down everybody's classes, but then we're just doing work for no reason: the OS will clean up our memory in any case. The issue seems to be "I'm using valgrind and it mentions a lot of 'possibly lost' data." In wh

Re: Memory leak in gdbus-codegen generated code

2015-02-09 Thread Jasper St. Pierre
The base class is simply never cleaned up. Typical types registered with GType are static, meaning they aren't ever cleaned up for the entire duration of the process. Why do you need to clean up the type? On Mon, Feb 9, 2015 at 10:59 PM, Norman, Anders wrote: > Well, I consider it a leak and ne

Re: Multithreaded application freezing

2015-02-05 Thread Jasper St. Pierre
You can still deadlock with two different processes (getting your protocol marshalling into a state where both processes are waiting for an RPC reply from the other), and we've seen it with DBus interfaces before. Really, the ability to not hang relies on careful engineering and understanding the

Re: Multithreaded application freezing

2015-02-03 Thread Jasper St. Pierre
Why? Having two socket connections make up one client can't really work out, considering they're two different streams which can't be synchronized between. On Tue, Feb 3, 2015 at 12:05 AM, G Hasse wrote: > Den 2015-02-03 03:26, Jasper St. Pierre skrev: > > > >

Re: Multithreaded application freezing

2015-02-02 Thread Jasper St. Pierre
On Mon, Feb 2, 2015 at 5:07 PM, G Hasse wrote: > Den 2015-02-02 22:57, Gulshan Singh skrev: > > I strongly advice designing an application in this way. Every window in > an application should be a separate process. Between processes you should > find a good protocol. This protocol should be tra

Re: gdk_pixbuf_new_from_file_utf8 -- where it is defined?

2015-01-02 Thread Jasper St. Pierre
On Fri, Jan 2, 2015 at 4:16 PM, Stefan Salewski wrote: > I am working on GTK3 wrappers/bindings for Nim language. > > For gdk-pixbuf-2.31.2 there seems to exist a function > gdk_pixbuf_new_from_file_utf8 which is called in > > gdk-pixbuf-io.c: > retval = gdk_pixbuf_new_from_file_utf8 (utf8_file

Re: GtkStatusIcon and Unity

2014-09-11 Thread Jasper St. Pierre
StatusIcon might be acceptable. For others, you might have to write an app indicator or design something better. On Thu, Sep 11, 2014 at 9:43 AM, Andrew Kelley wrote: > On Thu, Sep 11, 2014 at 1:42 AM, Jasper St. Pierre > wrote: > >> consider GtkStatusIcon deprecated. >> &

Re: GtkStatusIcon and Unity

2014-09-11 Thread Jasper St. Pierre
The StatusIcon technology is based on the System Tray Specification [0]. Ubuntu explicitly chose to remove support for the System Tray Specification in favor of their proprietary app indicators. KDE and GNOME are also considering removing support for status icons because of some of the same limit

Re: Accuracy of motion events

2014-09-01 Thread Jasper St. Pierre
Gtk+ queues up processing motion events until the next tick in the frame clock. It doesn't matter how fast you draw, we still throttle event processing to the compositor's redraw cycle. On Sep 1, 2014 5:57 AM, "Stefan Salewski" wrote: > On Mon, 2014-09-01 at 14:12 +0200, ax487 wrote: > > Ok, as f

Re: GSignalFlags

2014-08-15 Thread Jasper St. Pierre
This is a bug in our doc generator, gtk-doc. There's a flag in that enum, G_SIGNAL_DEPRECATED, which confuses it into thinking the entire enum is deprecated. It's not. I think the bug is fixed in the latest version of gtk-doc. On Fri, Aug 15, 2014 at 3:35 PM, Emmanuel Pacaud wrote: > Hi, > > Th

Re: How to Get Text&Event in a window of another running process(linux gtk)

2014-08-10 Thread Jasper St. Pierre
Why do you want the title of another window in another process? What are you trying to do? On Sat, Aug 2, 2014 at 3:34 AM, hello wrote: > I have read a lot of document. > But I can't find a little clue. > > I want get the text & event in a window of a running process. > > I have not the source

Re: Would it be possible that gtk implementation in C++

2014-08-07 Thread Jasper St. Pierre
Rewriting a widely-used library in a new language, breaking all APIs, is not a good idea when we're already struggling to maintain our current codebase. Regardless of whether you like C++ or not, this isn't going to happen. Sorry. On Thu, Aug 7, 2014 at 10:06 PM, 黄羽众 wrote: > Thank you for poin

Re: Notify a GtkContainer of a size change of a child widget

2014-08-05 Thread Jasper St. Pierre
If the size if your widget has changed, call gtk_widget_queue_resize on your widget to queue a resize cycle. On Tue, Aug 5, 2014 at 5:03 AM, ax487 wrote: > Hello all, > > I have the following scenario: I have a huge custom GtkWidget which I > want to display inside a GtkViewport inside a GtkScr

Re: error: expected primary-expression before ‘)’ token cast issue

2014-08-02 Thread Jasper St. Pierre
This is an issue with the syntax in the code you wrote, not with GTK+. As such, pseudo-code won't really help us find the issue, nor is gtk-list an appropriate place to ask for help. Giving us your real code might help us figure out why the compile error happens, but we understand that this might b

Re: Color for selections

2014-07-27 Thread Jasper St. Pierre
In GNOME, we use a fairly dark blue color for selections. You can get it by applying the GTK_STYLE_CLASS_RUBBERBAND style to your widget. If you don't have a widget, you can use the gtk_render_* APIs on a style context so that the background and border are rendered correctly. On Sat, Jul 26, 201

Re: How to add a callback that can be called whenever the event loop calls an event handler?

2014-07-23 Thread Jasper St. Pierre
ethod is adding the function as the > "after" handler for every event. > > > 2014-07-23 22:26 GMT+08:00 Jasper St. Pierre : > > Why, though? Why do you need this? >> >> >> On Tue, Jul 22, 2014 at 9:40 PM, Gang Chen >> wrote: >> >>> Yes,

Re: How to add a callback that can be called whenever the event loop calls an event handler?

2014-07-23 Thread Jasper St. Pierre
ut also the widgets' event handlers. > > > 2014-07-22 22:17 GMT+08:00 Paul Davis : > > >> >> >> On Tue, Jul 22, 2014 at 8:55 AM, Jasper St. Pierre > > wrote: >> >>> Call the function at the bottom of all your event handlers? >>> >>

Re: How to add a callback that can be called whenever the event loop calls an event handler?

2014-07-22 Thread Jasper St. Pierre
Call the function at the bottom of all your event handlers? I'd need more detail about your specific case in order to help you further. On Tue, Jul 22, 2014 at 6:06 AM, Gang Chen wrote: > Hi, > > The callback does something common to every event handler. The callback > should be called after a

Re: expose vs draw

2014-07-16 Thread Jasper St. Pierre
The cairo context you get is already clipped to the exposed region. You don't need to do any extra work. On Wed, Jul 16, 2014 at 12:33 PM, ax487 wrote: > Hello all, > > I am currently porting an application from gtk2 to gtk3. I just noticed > that the "expose_event" is no longer supported, inst

Re: cursor icon hotspots with PNG

2014-07-15 Thread Jasper St. Pierre
Why not provide the hotspot information as a separate, editable file? That means that people don't have to go poking through some obscure PNG chunks to find and edit data they're looking for. On Tue, Jul 15, 2014 at 2:09 AM, John Emmas wrote: > On 14/07/2014 13:35, Paul Davis wrote: > >> does a

Re: Hello world not show

2014-06-04 Thread Jasper St. Pierre
Do you see any error messages on the console where you run your program? What OS are you using? What version of GTK+ are you using? On Wed, Jun 4, 2014 at 9:21 AM, Zhengrong Zang wrote: > I compiled code as below and without any problems, but nothing shown when run > it, what should I do next?

Re: Widgets margins relative to character size (high DPI issue)

2014-02-10 Thread Jasper St. Pierre
Hi Stefan, High-DPI infrastructure was introduced to GTK+3 last cycle: http://blogs.gnome.org/alexl/2013/06/28/hidpi-support-in-gnome/ It should be completely transparent to your application. It works like HTML5 does, by making the "drawing pixel" different from the "device pixel". You can test

Re: Who knows ANYTHING about broadway / HTML5 backend?

2014-01-22 Thread Jasper St. Pierre
Hi Daniel, I can only find one email to this list about this, which is about maximizing windows on Broadway. I'm sorry I didn't reply, but I was busy that day. I do remember investigating the question before getting poked to do something else instead. Broadway is indeed not "officially" supported

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
Deprecated methods should not raise an exception. Deprecated methods shouldn't stop working because they're deprecated. On Fri, Jan 17, 2014 at 7:11 PM, Stefan Salewski wrote: > On Fri, 2014-01-17 at 17:11 -0500, Jasper St. Pierre wrote: > > Yeah. This is to maintai

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
t 17:11 -0500, Jasper St. Pierre wrote: > > Yeah. This is to maintain ABI compatibility. Technically, events have > > private internal data, and you can use gdk_event_get_device(); to get > > the > > keyboard device for a key event. > > > > This isn't documented v

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
ewski wrote: > On Fri, 2014-01-17 at 16:38 -0500, Jasper St. Pierre wrote: > > If you have a keyboard device, you can use > > gdk_device_get_associated_device() to return the paired mouse device. > > Fine -- but currently I have only a keyboard event as described in > > &g

Re: GTK3 -- query mouse pointer coordinates for keyboard input?

2014-01-17 Thread Jasper St. Pierre
If you have a keyboard device, you can use gdk_device_get_associated_device() to return the paired mouse device. On Fri, Jan 17, 2014 at 4:26 PM, Stefan Salewski wrote: > I recently ported a GTK2 application to GTK3 > (http://www.ssalewski.de/PetEd.html.en) > > I had some working Ruby code like

Re: gedit: running gedit as root I have no options on GNOME's top menu

2013-11-07 Thread Jasper St. Pierre
This is indeed the case. Apps run as other users cannot access your session bus, and that is very intentional. Do not run apps like gedit as root. It is very dangerous. On Thu, Nov 7, 2013 at 12:36 PM, althaser wrote: > Hey folks, > > I am not sure if this is the right mailling list, but here

Re: "draw" event fired forever

2013-11-04 Thread Jasper St. Pierre
gdk_window_set_background_rgba will queue a redraw on its own. Either set the background once when you create the GdkWindow, or paint the background manually with cairo. On Mon, Nov 4, 2013 at 10:15 AM, onetmt wrote: > Il 04/11/2013 15:24, Jasper St. Pierre ha scritto: > > Hm. This

Re: "draw" event fired forever

2013-11-04 Thread Jasper St. Pierre
Hm. This shouldn't be happening. What version of GTK+3 are you using, and can you produce a small reproducible example[0] ? [0] http://sscce.org/ On Mon, Nov 4, 2013 at 9:18 AM, onetmt wrote: > Il 04/11/2013 15:06, Jasper St. Pierre ha scritto: > > Connect to the "draw&qu

Re: "draw" event fired forever

2013-11-04 Thread Jasper St. Pierre
Connect to the "draw" signal on the widget to do your drawing, and call gtk_widget_queue_redraw(); on the widget if you want to request a redraw. On Mon, Nov 4, 2013 at 9:02 AM, onetmt wrote: > I'm currently in the process of porting to gtk+-3 an old finite > difference calculation application;

Re: Second Question: Gtk Cross Platform Bug

2013-10-10 Thread Jasper St. Pierre
These typedefs make no such guarantee. `gint` is just a typedef to `int`. On Thu, Oct 10, 2013 at 9:42 AM, Daniel Espinosa wrote: > Without running the code just a few suggestions: > > Use GLib's functions every time you can and more important use GLib's > types: use gint instead int, for examp

Re: How can I hook into any X input events sent to my app?

2013-09-22 Thread Jasper St. Pierre
You can do the unintuitive thing of passing NULL as the first argument to gdk_window_add_filter to get all events delivered to your app. On Sun, Sep 22, 2013 at 10:46 AM, Woody Wu wrote: > On Sat, Sep 21, 2013 at 11:47:16AM -0400, Jasper St. Pierre wrote: > > You can use an event fi

Re: How can I hook into any X input events sent to my app?

2013-09-21 Thread Jasper St. Pierre
You can use an event filter; see gdk_window_add_filter. On Sat, Sep 21, 2013 at 5:32 AM, Woody Wu wrote: > Hi, > > In my application, I want to record how much longer user has not did > anything, including key pressing and mouse pressing in any area of any > of my windows. > > If I can hook int

Re: translating -gtk-gradient to -webkit-gradient -- GTK3 Themes

2013-08-17 Thread Jasper St. Pierre
You should use the standard linear-gradient CSS feature, not -webkit-gradient. https://developer.mozilla.org/en-US/docs/Web/CSS/linear-gradient However, as far as I can tell, that's invalid syntax, as there's only one item allowed in a from() expression. This might be a recent restriction, in whi

Re: How to add a callback that will be called each time when the event queue becomes empty

2013-07-19 Thread Jasper St. Pierre
d > again and again, and CPU usage is 100%. > > The idle callback doesn't do any heavy processing. > > Regarding this problem, doing central updating when idle is simpler than > using signals to update. > > 2013/7/20 Jasper St. Pierre > > Low-priority idles *are* ca

Re: How to add a callback that will be called each time when the event queue becomes empty

2013-07-19 Thread Jasper St. Pierre
Low-priority idles *are* called every time the event queue is empty. Which could happen quite a lot when the application isn't really doing anything else. I don't know why your idle is causing 100% CPU usage, though. You're not doing any heavy processing in there, right? If you recalculate the sta

Re: Detecting GSettings/dconf and GConf at Runtime

2013-07-09 Thread Jasper St. Pierre
For instance, distributions that use the GNOME 2 desktop, but have GTK+3 > libraries available. > > > On Tue, Jul 9, 2013 at 4:17 PM, Jasper St. Pierre > wrote: > >> Why do you want to support both GSettings and GConf? >> >> >> On Tue, Jul 9, 2013 at 4:15 PM

Re: Detecting GSettings/dconf and GConf at Runtime

2013-07-09 Thread Jasper St. Pierre
Why do you want to support both GSettings and GConf? On Tue, Jul 9, 2013 at 4:15 PM, Philip Wernersbach < philip.wernersb...@gmail.com> wrote: > Hello, > > I have a GTK+ app that has options for using GSettings and GConf. The > settings backend that is used must be set at compile time. I'd like

Re: Support for remote file in location window

2013-07-07 Thread Jasper St. Pierre
on my system that it does not work. > > > > I am running Arch Linux with chromium 28.0.1500.52-1 > > > > On 4 July 2013 22:52, Jasper St. Pierre wrote: > >> GTK+ is the library that provides that window. The window is known as > >> "GtkFileChooser&

Re: Support for remote file in location window

2013-07-04 Thread Jasper St. Pierre
m not sure which program > provides this window. As for the file manager, I am using Nautilus. > > So, is there any way how I can tell the window to accept remote files? > > Regards, > > Robert > > [1] http://i.imgur.com/gF693yq.png > > On 4 July 2013 18:34, Jasper

Re: Support for remote file in location window

2013-07-04 Thread Jasper St. Pierre
Well, GtkFileChooser can support remote files (there's a flag for it), but only if the application can understand it. The app is returned either a filename (which is local-only) or a URI which it has to use Gio to implement. I don't know what app you're using, but it has to flip the switch to enabl

Re: Remove Minimize Button from GTK Window?

2013-07-01 Thread Jasper St. Pierre
anager? Would there have been a better way >> to hack the code to make the Minimize Button dissappear on all >> platforms and window managers? >> >> THanks >> Mitchell >> >> On Fri, Jun 21, 2013 at 3:58 PM, Jasper St. Pierre >> wrote: >

Re: Waiting forGMainLoop events

2013-06-26 Thread Jasper St. Pierre
So, Bogdan, I'm going to ask the question: why do you want to do this? It's a very unusual use of GMainLoop. What problem are you trying to solve? On Wed, Jun 26, 2013 at 7:45 PM, Kip Warner wrote: > On Thu, 2013-06-27 at 01:41 +0200, Bogdan Lotko wrote: > > poll() is not sleep()! > > Hey Bogd

Re: Remove Minimize Button from GTK Window?

2013-06-21 Thread Jasper St. Pierre
If you have a GdkWindow, you can tell the window manager to disable the minimize button with MWM hints using gdk_window_set_functions along with GDK_FUNC_MINIMIZE. On Fri, Jun 21, 2013 at 3:52 PM, Mitchell Verter wrote: > Is there any way to remove the "Minimize" button by hacking the > gtk+-2.24

Re: Throwing Gtk+ and DirectFB up against the wall to see what sticks:

2013-06-20 Thread Jasper St. Pierre
GTK+ does not currently support DirectFB because nobody wanted to maintain the code to support it. If you want to revive the DirectFB backend, you're more than welcome to do it, but we probably will not add the DirectFB backend because we're worried about maintenance, and because DirectFB was never

Re: Conventions for Error Logging

2013-05-04 Thread Jasper St. Pierre
On Sat, May 4, 2013 at 12:16 PM, Tristan Van Berkom wrote: > On Sat, May 4, 2013 at 10:22 PM, אנטולי קרסנר > wrote: > > Hello, > > > > I'm writing a desktop application using Gnome technologies. I added > > support for some operations which may fail or produce useful errors, so > > I decided I w

Re: Conventions for Error Logging

2013-05-04 Thread Jasper St. Pierre
For debugging sake, log to stderr / stdout. A modern system will redirect stderr to something like the systemd journal for structured logging appropriately. On Sat, May 4, 2013 at 12:46 PM, אנטולי קרסנר wrote: > Thanks for your reply, > > I realized app error logs are needed only for debugging,

Re: Compile Pango1.32.6 on micro itron

2013-05-01 Thread Jasper St. Pierre
Gah, I was assuming he was building from git, not a tarball. I don't know why. Sorry about that. On Wed, May 1, 2013 at 2:53 PM, David Nečas wrote: > On Wed, May 01, 2013 at 02:37:56PM -0400, Jasper St. Pierre wrote: > > config.h is generated by automake. > > Actually, conf

Re: Compile Pango1.32.6 on micro itron

2013-05-01 Thread Jasper St. Pierre
config.h is generated by automake. You will need to use autoconf / automake in order to compile most GTK+/GNOME libraries. On Mon, Apr 29, 2013 at 11:41 PM, Phyllis wrote: > Hi all, > > I want to compile Pango on an OS which is not famous as Linux,Windows, and > so on. > > And because compile e

Re: glib: processing events in multiple threads

2013-04-30 Thread Jasper St. Pierre
Note that GTask replaced GSimpleAsyncResult, which has a considerably lousier API, but is still workable for doing the same thing. If you need more availability, you should use that. On Tue, Apr 30, 2013 at 10:58 AM, Chris Vine wrote: > On Tue, 30 Apr 2013 10:44:43 -0400 > "Jasper

Re: glib: processing events in multiple threads

2013-04-30 Thread Jasper St. Pierre
Has anybody looked into GTask? It's a simple way to make a worker thread for some heavy processing, give it some data, and be notified on its completion or failure. It's the recommended way to run a synchronous task in another thread in the GNOME world. On Tue, Apr 30, 2013 at 10:40 AM, Chris Vi

Re: How to override theming background image?

2013-04-02 Thread Jasper St. Pierre
n Gheorghe wrote: > Hi Jasper - > > We are porting Eclipse SWT to GTK3 and SWT has API to set the background > image of a widget. > > Thanks, > B > > > > From: "Jasper St. Pierre" To: Bogdan > Gheorghe/Ottawa/IBM@IBMCA Cc: "gtk-list@gnome.org"

Re: How to override theming background image?

2013-04-02 Thread Jasper St. Pierre
The basic question I have is "why do you want to do this"? On Tue, Apr 2, 2013 at 2:33 PM, Bogdan Gheorghe wrote: > Hi - > > GtkWidget provides API to override the background color defined in the Gtk > Theme ( > *gtk_widget_override_background_color*

Re: gdk_cairo_get_clip_rectangle and DrawingArea in ScrollableWindow

2013-03-30 Thread Jasper St. Pierre
The clip rectangle is not necessarily the visible area. It's the exposed or damaged area. The scroll view works by copying the rendered contents a little higher up in the buffer, and then telling your drawing area to render the stuff that wasn't already on the window. If window is resized or it lo

Re: Question about a Gtk-WARNING message when running gedit

2013-03-29 Thread Jasper St. Pierre
Your issue is that you have an old GTK+ theme paired with a new GTK+ version. On Thu, Mar 28, 2013 at 12:53 PM, Tilton, James C. (GSFC-6063) < james.c.til...@nasa.gov> wrote: > Hi gtk-list: > > ** ** > > I recently built and installed GTK+ version 3.6.4. This ended up > 'breaking' my old RH

Re: Disable 'Print to File'

2013-03-28 Thread Jasper St. Pierre
What desktop environment are you using for your kiosk OS? On Thu, Mar 28, 2013 at 6:59 AM, Kai Hendry wrote: > On 28 March 2013 18:22, Ritesh Khadgaray wrote: > > Check the gsettings "org.gnome.desktop.lockdown", disable-print. This is > > usually a app specific bug. > > Is there a filesystem

Re: EXTERNAL: Windows Installer for Gtk+3.6.2 and gtkmm-3.6.0

2013-02-17 Thread Jasper St. Pierre
, i could release it. > > On 17.02.2013 18:31, Jasper St. Pierre wrote: > > It matches Windows recommendations as well. They consider that you > > should rarely ship or install system DLLs, and instead ship all DLLs > > you want locally, to prevent DLL conflicts. >

Re: EXTERNAL: Windows Installer for Gtk+3.6.2 and gtkmm-3.6.0

2013-02-17 Thread Jasper St. Pierre
It matches Windows recommendations as well. They consider that you should rarely ship or install system DLLs, and instead ship all DLLs you want locally, to prevent DLL conflicts. On Sun, Feb 17, 2013 at 12:06 PM, Paul Davis wrote: > > > On Sat, Feb 16, 2013 at 7:27 AM, Bálint Réczey wrote: > >>

Re: GObject Destruction

2012-12-18 Thread Jasper St. Pierre
ue, Dec 18, 2012 at 5:57 PM, David Nečas wrote: > On Tue, Dec 18, 2012 at 05:37:08PM -0500, Jasper St. Pierre wrote: > > The call for freeing a block of memory is free(void *data); > > And the call for freeing a GSlice-allocated block of memory is > > void g_slice_f

Re: GObject Destruction

2012-12-18 Thread Jasper St. Pierre
is simple :) > > It works, if i use g_object_get(...), its only throws critical messages. > The problem is a refcount-check. If i make myself an cast to the correct > structure and use the variables would maybe work but its only a > workaround. > > Am Dienstag, den 18.12.20

Re: GObject Destruction

2012-12-18 Thread Jasper St. Pierre
The issue is that the class has already been finalized. At that point, you are no longer allowed to access any properties. I suppose you could also try and access raw storage from class A, but storing any data you'll need to free something in class B when you allocate it seems like the cleanest so

Re: GObject Destruction

2012-12-17 Thread Jasper St. Pierre
Store X/Y in class B. On Mon, Dec 17, 2012 at 10:57 PM, Günther Wutz wrote: > Hi, > > i have read the development stuff about GObject initialization and > destruction of an Object. But i have currently a problem, which drives > me crazy. > > I have an Class A, which stores two Integer as proper

Re: Problem with GTK3 Theme Engines

2012-12-09 Thread Jasper St. Pierre
The Adwaita theme engine is part of gnome-themes-standard. http://git.gnome.org/browse/gnome-themes-standard/tree/themes/Adwaita/gtk-3.0 On Sun, Dec 9, 2012 at 6:56 AM, Kevin Connor Arpe wrote: > Hi, > > As noted on an earlier mail, I am building a dev sandbox for GTK3 hacking. > > Today I am s

Re: GTK+ 3.6.1 for Win32 (Runtime & Bundle)

2012-11-23 Thread Jasper St. Pierre
dieterv on #gtk+ is who you want to talk to about that, but it's vacation in America right now, so you might need to wait until Monday On Fri, Nov 23, 2012 at 4:23 AM, wrote: > Hi Andy, > I have no relation with the GTK+ team. > Regarding the packages, I think the problem is just, they don't ha

Re: Bug 687752 - work with theme authors

2012-11-11 Thread Jasper St. Pierre
This is all well and good. It's certainly not where we (read: I) would like to be, but it's a pretty accurate summary at this point. I would disagree with you on backwards compatibility, slightly. I think we shouldn't try too hard, but we also now have a clear goal for theme authors: standard CSS.

Re: The issue of compiling and running gedit 3.7.1 within jhbuild.

2012-11-08 Thread Jasper St. Pierre
It seems that you didn't build dconf, gnome-icon-theme, or gnome-themes-standard. You need to build all of these, even if the versions you have are new enough. I'm not sure about the ATK warning, but try building atk and all of its dependencies. You can use `jhbuild run gedit`, but I just recommen

Re: Is there some commands within jhbuild that can let me list all of the dependenced packages relative to a specific package?

2012-11-07 Thread Jasper St. Pierre
Use the '-r' option to show version information: jhbuild list -r gtk+ On Wed, Nov 7, 2012 at 11:15 PM, Hongyi Zhao wrote: > On 11/08/2012 01:25 AM, Jasper St. Pierre wrote: > >> $ jhbuild list gtk+ >> > Yes, this command can give me the information like this: &g

Re: Debugging memleaks - valgrind suppressions & closures

2012-11-07 Thread Jasper St. Pierre
I've used the Clutter suppression files with some success. We should try and keep a standard set of GTK+ suppression files up to date, though. http://git.gnome.org/browse/clutter/tree/tests/data/clutter-1.0.suppressions On Wed, Nov 7, 2012 at 5:49 PM, mar...@saepia.net wrote: > Hi all, > > I am

Re: Is there some commands within jhbuild that can let me list all of the dependenced packages relative to a specific package?

2012-11-07 Thread Jasper St. Pierre
$ jhbuild list gtk+ On Wed, Nov 7, 2012 at 5:40 AM, Hongyi Zhao wrote: > Hi all. > > Suppose I want to build the gtk+ with jhbuild, considering that the git > repo of gnome is so slowly for me. So the most efficient way for me is > that first to list all of the dependenced packages relative

Re: jhbuild, from where can I find the whole list for all modules?

2012-11-01 Thread Jasper St. Pierre
On Thu, Nov 1, 2012 at 10:51 AM, Hongyi Zhao wrote: > On 11/01/2012 10:39 AM, Jasper St. Pierre wrote: >> >> It depends on the moduleset you're using. > > Is there any command for listing all of the > > module names and vesions in the current u

Re: jhbuild, from where can I find the whole list for all modules?

2012-11-01 Thread Jasper St. Pierre
On Thu, Nov 1, 2012 at 10:32 AM, Hongyi Zhao wrote: > Hi all, > > I want to use jhbuild to update some specified package(s), for this purpose, > I want to know the complete list for all of the available packages/modules > with the jhbuild command, i.e., > > $ jhbuild build the_pakage_name > > Fro

Re: question on gtk+

2012-10-19 Thread Jasper St. Pierre
On Fri, Oct 19, 2012 at 7:34 AM, belal medhat wrote: > hi > i wanna ask a question > to work with gtk+ for c i should learn c89 or c99? Just learn C for now, and use C99. The distinctions are minimal, and if you ever need to write raw C89, somebody will guide you through the process. Good luck!

  1   2   >