GtkNotebook action widgets

2012-03-12 Thread Matthew Bucknall
Hi, Is it possible to make a GtkNotebook show its action widgets when it contains no tabs? If not, I'll file a bug because it seems silly to effectively prevent having 'Add Tab' type buttons in the action areas. Matt. ___ gtk-devel-list mailing list gtk

GtkNotebook Action Widgets

2012-03-09 Thread Matthew Bucknall
Hi, Is it possible to make a GtkNotebook show its action widgets when it contains no tabs? If not, I'll file a bug because it seems silly to effectively prevent having 'Add Tab' type buttons in the action areas. Matt. ___ gtk-devel-list mailing list gtk

GtkNotebook tab layout

2011-10-10 Thread Matthew Bucknall
As far as I can tell, in gtk+-3.0.12, GtkNotebook only uses the minimum size when allocating space for tab labels. If a tab label is set to ellipsize, only the ellipsis is shown regardless of how much room there is available for text. Are there any plans to make GtkNotebook use tab label natural si

Glib Atomic Operations

2011-10-07 Thread Matthew Bucknall
Hi, I was looking at the atomic operation macros in gatomic.h. I'm curious, in the following macro, what is the purpose of '(void) (0 ? *(atomic) ^ *(atomic) : 0)'? #define g_atomic_int_get(atomic) \ (G_GNUC_EXTENSION ({ \ G_STATIC_ASSERT (sizeof *(atomic) == sizeof (gint));

Re: Grip Size

2011-09-28 Thread Matthew Bucknall
On 26 September 2011 20:21, Matthew Bucknall wrote: > I'm working on a custom container class using GTK+ 3.0 which has some > similarities with GtkPaned but supports more than two child widgets. I > can install a style property to specify the size of the grips used for > resiz

Grip Size

2011-09-26 Thread Matthew Bucknall
I'm working on a custom container class using GTK+ 3.0 which has some similarities with GtkPaned but supports more than two child widgets. I can install a style property to specify the size of the grips used for resizing child widgets, however it is not likely that any theme will ever support the p

Re: Geometry Management

2011-09-25 Thread Matthew Bucknall
On 25 September 2011 23:07, Paul Davis wrote: > On Sun, Sep 25, 2011 at 5:36 PM, Matthew Bucknall > wrote: >> I'm trying to get my head around GTK+ 3.0's new 'Height-for-width >> Geometry Management'. Sorry if I'm missing it in the documentation >&

Geometry Management

2011-09-25 Thread Matthew Bucknall
I'm trying to get my head around GTK+ 3.0's new 'Height-for-width Geometry Management'. Sorry if I'm missing it in the documentation somewhere, but what exactly is the definition of a widget's natural width or height? ___ gtk-devel-list mailing list gtk-d

Re: GIO Async. user data life time

2011-08-12 Thread Matthew Bucknall
On 12 August 2011 15:54, Dan Winship wrote: > On 08/12/2011 10:15 AM, Matthew Bucknall wrote: >> Any better suggestions would be much appreciated. I'm hoping the >> answer won't be that it doesn't matter if user data doesn't get >> cleaned up because if t

GIO Async. user data life time

2011-08-12 Thread Matthew Bucknall
Hi, I am curious to know if there is a general consensus regarding how the life time of user data passed to asynchronous operations in GIO (such as g_output_stream_write_async) should be handled? If I pass some GObject as user data into a async. function, then it is surely correct that the object

Re: New GTK+ website design

2011-04-19 Thread Matthew Bucknall
On Tue, Apr 19, 2011 at 3:30 PM, Martyn Russell wrote: > Hi all, > > I've been meaning to send this for some time now. I managed to get some of > the last things fixed up and the site hosted on my server for some testing. > > Thanks to Devin for all the hard work put in on this. The biggest change

Re: DBus Connection Timeout

2011-04-12 Thread Matthew Bucknall
On Tue, Apr 12, 2011 at 4:32 PM, David Zeuthen wrote: > Hi, > > On Tue, Apr 12, 2011 at 9:49 AM, Matthew Bucknall > wrote: >> Hi, >> >> I'm trying to use g_dbus_connection_new_for_address_sync() to connect >> to message bus via TCP (dbus-daemon-prox

DBus Connection Timeout

2011-04-12 Thread Matthew Bucknall
Hi, I'm trying to use g_dbus_connection_new_for_address_sync() to connect to message bus via TCP (dbus-daemon-proxy --session) as follows: connection = g_dbus_connection_new_for_address_sync (   "tcp:host=localhost,port=8080,family=ipv4", G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION | G_D

GDBus - Overriding org.freedesktop.DBus.Properties

2011-02-10 Thread Matthew Bucknall
To handle setting/getting of D-Bus properties asynchronously, the documentation for GDBusConnection states: '...simply register an object with the org.freedesktop.DBus.Properties D-Bus interface using g_dbus_connection_register_object().' This works so far as allowing an application to handle Get

Re: GIO Stream Splicing

2010-12-22 Thread Matthew Bucknall
Sorry but that isn't really a proper answer. Why shouldn't there be a variant of g_output_stream_splice_async() which is able to splice only a limited number of bytes? On Wed, Dec 22, 2010 at 9:19 AM, Xavier Claessens wrote: > Le mardi 21 décembre 2010 à 00:09 +0000, Matthew Buc

GIO Stream Splicing

2010-12-21 Thread Matthew Bucknall
It would be really helpful if GIO stream splicing functions could take a maximum length argument instead of just continuing up until EOF. Is there any particular reason why the applicable functions do not take such an argument? Matt. ___ gtk-devel-list m

Serialization and persistence

2010-05-14 Thread Matthew Bucknall
Hi, I know GObject serialization has been discussed a few times before although, as far as I can tell, no generic solution seems to have been made widely available. Currently, I am working on a library which can (de)serialize and/or provide persistence for GObjects at the property level. The libr

Re: Unix signals in GLib

2010-04-30 Thread Matthew Bucknall
Find attached an excerpt from an application of mine. Not entirely self-contained, but you should get a general idea of what is going on. Using the attached code, my application calls app_signal_block_unused() early on during initialization. The signal listening thread is initialized and started b

g-ir-scanner type confusion

2010-04-25 Thread Matthew Bucknall
I'm trying to generate GObjectIntrospection data for a library I've created. The library defines, among others, two classes called CmModule and CmModuleGroup. The gir file created by g-ir-scanner for the library contains an accurate description of CmModule, but describes CmModuleGroup as a record i

Time functions

2008-09-04 Thread Matthew Bucknall
Hello, Sorry if this is a question that has been answered many times before (I did spend some time looking before writing this). The Glib reference manual mentions 'GLib doesn't contain any time-manipulation functions'. Given that... 1) There is a fairly decent set of date manipulation functions

Re: Widget Overlays

2007-04-11 Thread Matthew Bucknall
gtk_widget_shape_combine_mask(), that would deal with transparency I guess. Would this be a case where creating a GTK window of type GTK_WINDOW_POPUP would be appropriate? Regards, Matt. Tim Janik wrote: > On Mon, 9 Apr 2007, Matthew Bucknall wrote: > >> Hello! >> >> I'm working o

Widget Overlays

2007-04-10 Thread Matthew Bucknall
Hello! I'm working on a UI where I would like, at times, to overlay some icons on top of a window's normal layout when the user performs certain operations, similar to the way tool tips appear, except I want the user to be able to click on these icons, or use the window as normal. I've been looki