Re: Functional programming with GLib

2017-08-07 Thread Stefan Sauer
Am 09.05.2017 um 10:59 schrieb Tristan Van Berkom: > On Mon, 2017-05-01 at 19:09 -0400, Matthias Clasen wrote: >> >> >> On Thu, Apr 27, 2017 at 10:29 AM, Emmanuele Bassi >> wrote: >>> For command line parsing I'd actually favour a slightly bolder >>> approach of deprecating

Re: CSS documentation and non-breakable hyphens

2017-06-02 Thread Stefan Sauer
On 05/31/2017 10:37 AM, Arnaud wrote: >> Wondering if there's a better way to do that. > Well, it seems that the most common answer for that problem is to use a > element with the 'white-space' property set to 'nowrap'. > > HTML:i-dont-want-to-be-broken > CSS:span.nobr { white-space:

Re: how to customise gtk-doc output

2017-04-13 Thread Stefan Sauer
On 04/12/2017 03:14 PM, jcup...@gmail.com wrote: > On 12 April 2017 at 13:23, Sébastien Wilmet wrote: >> On Wed, Apr 05, 2017 at 10:24:00AM +0100, jcup...@gmail.com wrote: >>> I'd like to customise the gtk-doc output for my project: I'd like a >>> new header, and some tracker

Re: Up-to-date Valgrind suppression file for GLib/GTK+ ?

2017-01-02 Thread Stefan Sauer
On 12/30/2016 12:09 PM, jcup...@gmail.com wrote: > On 29 December 2016 at 23:55, Emmanuele Bassi wrote: >> As Philip explained earlier in the thread, Valgrind can only accept a >> single suppression file. So, if GTK+ ships a suppression file, it >> would need to include

Re: Up-to-date Valgrind suppression file for GLib/GTK+ ?

2016-12-29 Thread Stefan Sauer
On 08/02/2016 05:13 PM, Sébastien Wilmet wrote: > On Tue, Aug 02, 2016 at 01:47:41PM +0100, Philip Withnall wrote: >> On Mon, 2016-08-01 at 20:10 +0200, Sébastien Wilmet wrote: >>> So, is there an up-to-date Valgrind suppression file somewhere? Or is >>> GNOME.supp the most up-to-date? >> The one

Re: dependency graph

2015-07-24 Thread Stefan Sauer
or jhbuild dot gtk+ | dot -Tpng -o /tmp/deps.png eog /tmp/deps.png (link valid for the next 7 days: http://picpaste.com/deps-07HMklsT.png) Stefan On 04/06/2015 08:07 PM, Jasper St. Pierre wrote: The one in here, perhaps? https://github.com/hexchat/gtk-win32/blob/master/README.md On Mon,

Re: Ruler Class in GTK+ 3

2015-01-09 Thread Stefan Sauer
On 01/09/2015 05:12 PM, Emmanuele Bassi wrote: hi; On 9 January 2015 at 16:02, Kamalpreet Grewal grewalkamal...@gmail.com wrote: I am trying to add ruler to my application based on GTK+ 3. A class namely is available in GTK2. I havebeen trying to find a class serving the purpose of

Re: gtktreeview: highlighting a cell

2015-01-06 Thread Stefan Sauer
On 12/12/2014 06:57 PM, Allin Cottrell wrote: I'm using GtkTreeView to implement a simple spreadsheet. With GTK 2, if use gtk_tree_view_set_cursor() to place keyboard focus on a given cell, with the last argument set to FALSE so that editing mode is not entered immediately, I get a visual

Re: Documenting properties and signals with gtk-doc

2015-01-06 Thread Stefan Sauer
On 12/20/2014 01:39 PM, Wouter Verhelst wrote: Hi list, I've been pouring over the (fairly scarce) documentation https://developer.gnome.org/gtk-doc-manual/unstable/ if anything is unclear, let me know. ... and FYI there also is a gtk-doc mailing list and irc channel. Stefan and trying to

Re: debugging broadway

2014-03-11 Thread Stefan Sauer
On 03/11/2014 09:42 AM, Alexander Larsson wrote: On mån, 2014-03-10 at 23:06 +0100, Stefan Sauer wrote: On 03/10/2014 09:07 PM, Alexander Larsson wrote: On mån, 2014-03-10 at 15:14 +0100, Stefan Sauer wrote: hi, I wanted to see the broadway backend in action. Using gtk+3.8 I run broadwayd

debugging broadway

2014-03-10 Thread Stefan Sauer
hi, I wanted to see the broadway backend in action. Using gtk+3.8 I run broadwayd --address=ipaddr --port=8080 :5 and BROADWAY_DISPLAY=:5 GDK_BACKEND=broadway ./my-gtk3-app On the browser side, all I get is a blank window with a title containing broadway 2.0. Tested with chrome 33.0 and firefox

Re: debugging broadway

2014-03-10 Thread Stefan Sauer
On 03/10/2014 09:07 PM, Alexander Larsson wrote: On mån, 2014-03-10 at 15:14 +0100, Stefan Sauer wrote: hi, I wanted to see the broadway backend in action. Using gtk+3.8 I run broadwayd --address=ipaddr --port=8080 :5 and This has 8080 BROADWAY_DISPLAY=:5 GDK_BACKEND=broadway ./my-gtk3

Re: Error

2013-12-30 Thread Stefan Sauer
hi, I don't see anything gtk-doc specific here. You probably want to ask on the gtk-devel list. In order to fix one of the issues install Xvfb as the error suggests, Stefan On 09/01/2013 09:39 PM, Weiller Ronfini wrote: weiller@debian:~/Downloads/gtk+-3.8.4$ make check Making check in po

Re: Some shortcomings in gtestutils

2013-02-25 Thread Stefan Sauer
On 21.02.2013 03:46, Federico Mena Quintero wrote: Hi, everyone, I've been writing some tests for GtkFileChooserButton and putting them in gtk+/gtk/tests/filechooser.c - this is the old test suite, resurrected and alive. So, I've been learning what gtestutils provides. It is not bad, but

Re: one function to go...

2012-12-28 Thread Stefan Sauer
On 12/23/2012 10:39 PM, Gary Kline wrote: guys, I need one 'quit' button in a small widget that says via the label = gtk_label_new(File does not exist);, and displays OK with the Enter key icon. Instead of having the user click on a Quit or Close button,

Re: Glib for iOS

2012-08-01 Thread Stefan Sauer
On 07/18/2012 12:49 AM, Hubert Figuière wrote: On 17/07/12 03:46 PM, Paul Davis wrote: it can be very hard. there are two approaches. one is to build a pseudo/fake gtk-doc package for OS X, which does actually exist, but i can't tell you where to find it. google will help. the other is to

Re: Push button with enter

2012-02-21 Thread Stefan Sauer
On 02/13/2012 03:18 PM, Manuel Ferrero wrote: I'd like to have a button pushed every time I press the Enter key, even if that button is not selected. Let say I click on a text box, I write some text and then when I press Enter the button is pressed. Is it possible? Right now the button is

Re: RFC: new features

2012-01-18 Thread Stefan Sauer
On 01/18/2012 08:53 PM, Christian Hergert wrote: On Wed, 2012-01-18 at 09:49 +0100, Sergio Villar Senin wrote: En 13/01/12 16:04, Bastien Nocera escribiu: On Thu, 2012-01-12 at 11:23 +0100, Alexander Larsson wrote: On Wed, 2012-01-11 at 20:38 -0800, Christian Hergert wrote: snip MENU BUTTON

Re: is thaere a way to exit(1)?

2012-01-17 Thread Stefan Sauer
On 01/15/2012 12:51 AM, Gary Kline wrote: On Fri, Jan 13, 2012 at 10:09:43PM +0100, David Ne??as wrote: On Fri, Jan 13, 2012 at 11:59:45AM -0800, Gary Kline wrote: I finally know =where= i want to exit my gtk program, but exit just doesn't break me out of my while() loop. what's the magin?

Re: How GTK styling works

2012-01-16 Thread Stefan Sauer
On 01/16/2012 11:21 PM, John Ralls wrote: On Jan 16, 2012, at 1:04 PM, Benjamin Otte wrote: CSS goes in, styled windows come out. You can't explain that. And quite frankly, that sucks. So here's a high-level overview of how the GTK CSS machinery works in master. [SNIP] Benjamin, That's

Re: RFC: new features

2012-01-14 Thread Stefan Sauer
On 01/14/2012 12:53 AM, Michael Torrie wrote: On 01/13/2012 12:52 AM, Stefan Sauer wrote: TIP-DIALOG I've seen several implementations in aps (e.g. gimp has one). I did one for buzztard. It shows a random message from the tips list. I don't know of anyone who actually finds such a dialog

Re: RFC: new features

2012-01-12 Thread Stefan Sauer
On 01/12/2012 03:59 AM, Benjamin Otte wrote: One thing I've been wondering about is what features GTK is missing. This is mostly about developer-visible APIs, ie new widgets, and not about internal changes. I have some ideas from IRC discussions, mails and applications, but of course there

Re: RFC: UI design

2012-01-10 Thread Stefan Sauer
On 01/09/2012 04:29 PM, Benjamin Otte wrote: Hey, Here's another discussion point I want people to think about before the hackfest. This time it's not so much about API in a direct way but more about a guiding principles for the kinds of APIs we want to provide. The short question is this:

Re: release resource of gtk

2012-01-08 Thread Stefan Sauer
On 01/02/2012 04:09 AM, wenmhappy wrote: hi everyone, I run GtkLauncher(webkit/gtk/directfb), I find gtk/directfb are not released even if gtk_widget_destroy(top_window) has been called before gtk_main() quit. I don`t find function such as gtk_term or gtk_deinit() to

Re: GMenuModel has landed

2011-12-12 Thread Stefan Sauer
On 12/12/2011 03:24 AM, Matthew Brush wrote: On 12/11/2011 12:14 PM, Stefan Sauer wrote: On 12/09/2011 01:00 AM, Ryan Lortie wrote: hi, Today I landed the GMenuModel work on glib master. A release will be following shortly. Just one quick question - why is this in GLib? Is that to allow

Re: GLIB for a webserver

2011-12-11 Thread Stefan Sauer
On 12/08/2011 02:13 PM, Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - wrote: Hello, I am planning to use glib to write a C application server. I just like the library philosophy a lot and that’s why it is my first choice. However, after searching the web for a

Re: Displaying domain objects with GtkTreeView

2011-12-06 Thread Stefan Sauer
On 12/02/2011 03:55 PM, Rafał Krupiński wrote: 2011/12/1 David Nečas y...@physics.muni.cz: What are you talking about? You can pass any GObject-derived type as the column type (not that it matters much, the net result is the same as passing G_TYPE_OBJECT). You get back the objects that you

Re: error in compile gtk3 in OSX

2011-12-06 Thread Stefan Sauer
On 12/06/2011 02:47 AM, xiaobo wrote: Hi, All I got a error when I compile gtk3 in OSX . This is log. . . CCLD libgtk-3.la CC queryimmodules.o CCLD gtk-query-immodules-3.0 GISCAN Gtk-3.0.gir Usage: g-ir-scanner [options] sources g-ir-scanner: error: no

Re: string replace function

2011-12-06 Thread Stefan Sauer
On 12/06/2011 03:56 AM, Kevin Anthony wrote: I was thinking of making a g_strrpl and g_strnrpl The first one takes (gchar*,gchar*) and returns a gchar* in which the all instances of the second gchar* will be found and replaced in the first gchar*. replaced by what? g_strcannon can be used for

Re: GTK based media player in C

2011-12-06 Thread Stefan Sauer
On 09/19/2011 07:35 AM, Hitesh_Sharma wrote: Dear Team, I am looking for a sample code in C for GTK based media player.Kindly let me know from where I can get a sample code showig functionality of media player. super late reply, but anyway here is a gstreamer example that is a test app for

Re: error in compile gtk3 in OSX

2011-12-06 Thread Stefan Sauer
On 12/06/2011 11:32 AM, xiaobo wrote: 在 2011-12-6 下午6:00 時, Stefan Sauer 寫到: On 12/06/2011 02:47 AM, xiaobo wrote: Hi, All I got a error when I compile gtk3 in OSX . This is log. . . CCLD libgtk-3.la CC queryimmodules.o CCLD gtk-query-immodules-3.0 GISCAN

Re: GObjectClass.dispose and bringing objects back to life

2011-12-06 Thread Stefan Sauer
On 12/04/2011 05:03 PM, David Nečas wrote: On Sun, Dec 04, 2011 at 01:40:58PM +, Emmanuele Bassi wrote: this is, of course, not true: GNOME is full of badly written GObject code, mostly because it has been written at various stages of the learning process of various people. plus, the

Re: Valgrind questions

2011-11-29 Thread Stefan Sauer
On 10/07/2011 11:09 AM, Andrew Cowie wrote: On Tue, 2011-09-20 at 12:48 +0100, jcup...@gmail.com wrote: Ooop, thanks. I hadn't realised but I'd not updated the version on the website for a while. I've put my current one up now and it includes a thing for g_type_add_interface_static(), as you