Re: Copywrite protection and source-code distribution

2018-08-02 Thread Colomban Wendling
I am not a lawyer, but… Le 31/07/2018 à 15:41, Roger Matthews via gtk-app-devel-list a écrit : > I have developed an application using GTK+3.10. What copy-write > protection can you (GTK+) provide for me. GTK+ doesn't "provide copyright protection" for software using it, and no library does. GTK

Re: [PyGObject] Drag & Drop in a TreeView

2018-07-28 Thread Colomban Wendling
Le 27/07/2018 à 23:05, c.buhtz--- via gtk-app-devel-list a écrit : > Dear Reuben > > On 2018-07-23 08:03 Reuben Rissler wrote: >> This is how I have done it in the past. Note, I do not proclaim >> spectacular or Pythonic code, and would humbly accept any corrections >> and/or better ways to acc

Re: Gtk3 CSS classes for Custom Widgets - Help!

2018-02-17 Thread Colomban Wendling
Hi, Le 16/02/2018 à 12:12, Randall Sawyer a écrit : > I have devised a custom widget which is intended to appear and react to > user input as if it were a button (without the overhead of inheriting > GtkButton). This sounds a fairly odd way to proceed, as if it has all the properties of a GtkButt

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Colomban Wendling
Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : > Hi guys, > > Someone who knows this error? > > DescriptionResourcePathLocationType > unknown type name ‘GtkSearchEntry’ConsolaGraficaline 39, > external location: Too old GTK? GtkSearchEntry is new in 3.6: https://

Re: Programatically activate menu like a mouse click

2017-02-24 Thread Colomban Wendling
Le 24/02/2017 à 10:24, John Lane a écrit : > On 23/02/17 21:02, Colomban Wendling wrote: > >> >> Sounds odd to do that manually. Do you know about mnemonic keys? >> Basically if you mark some part of the label to be the mnemonic letter, >> you'll be able to t

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Colomban Wendling
Le 23/02/2017 à 15:57, John Lane a écrit : > […] > > The UIManager provides the menu bar, a few items in the bar each leading > to menus containing a few items. The user can click operate the menu > with a mouse and selecting a menu item triggers a callback that prints > the name of the selected i

Re: caret-color (and caret-width?)

2017-01-27 Thread Colomban Wendling
Hi, Le 26/01/2017 à 16:57, Richard Shann a écrit : > I see at > > https://developer.gnome.org/gtk3/stable/chap-css-properties.html > > that there is a caret-color property. Is it possible to change the > thickness of the text caret? Yes: https://developer.gnome.org/gtk3/stable/GtkWidget.html#Gt

Re: deprecated gtk_cairo_create

2016-12-30 Thread Colomban Wendling
Le 30/12/2016 à 18:25, Jim Charlton a écrit : > If one does want to draw into a cairo_surface_t, one can create a cairo > context for drawing? E.g. > > cairo_t * > cairo_create (/|cairo_surface_t >

Re: deprecated gtk_cairo_create

2016-12-30 Thread Colomban Wendling
Le 30/12/2016 à 15:09, Sergei Kolomeeyets a écrit : > Hi, Colomban > Thanks a lot for you hint! I realised the idea of wrong event hanling. > Do you mean that I SHOULD DO NOTHING to create a cairo context BECAUSE > IT IS in the draw event callback function obligatory parameters? And, if > yes, I co

Re: deprecated gtk_cairo_create

2016-12-30 Thread Colomban Wendling
Hi, Le 30/12/2016 à 12:20, Sergei Kolomeeyets a écrit : > Hi, everyone > […] > > {draw_callback} > > gboolean draw_callback(GtkWidget *area, GdkEventExpose *event, GArray > *ptLinePoints) { That's not the right signature for the GtkWidget::draw signal: it takes a cairo_t* as the second parameter

Re: GtkEntry placeholder in GTK2

2016-11-14 Thread Colomban Wendling
Hi, Le 14/11/2016 à 14:30, Gabriele Greco a écrit : > I know GTK 3.2+ has a nice gtk_entry_set_placeholder_text() method, but I'm > wondering if there is some clever method to do something similar with GTK2, > I've not found anything googling around, but placeholder texts are a so > common interfa

Re: How can I retrieve gtk style context information from textview widget class without a textview widget?

2015-06-12 Thread Colomban Wendling
Hi, Le 12/06/2015 14:04, Friedrich Beckmann wrote: > I would like to use the style information from the textview widget in > another context. I want to retrieve the text foreground color and the > background color as it would be used in a textview widget and use > this style information for render

Re: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed

2015-03-12 Thread Colomban Wendling
Le 12/03/2015 16:20, Rui Pedro Caldeira a écrit : > Hello guys, I once again seek your guidance. > > I have a series of GtkWidget* that then take the form of GtkButton, > GtkComboBoxText,... > > And when I close a window, I first want to destroy the widgets. Why? Widgets are automatically destr

Re: Scrolled window child contents showing on other widgets when resizing window in scrolled state

2015-03-09 Thread Colomban Wendling
Hi, Le 09/03/2015 08:41, Pramathesh Ambasta a écrit : > […] > > The ui consists of a main window, a grid in which are packed a File > ChooserWidget (above) and a scrolled window below. The scrolled window > has a layout or a drawing area with a viewport as a child. > > In the layout or the drawi

Re: GTK+3 GtkCellRendererPixbuf: pixbuf vs. icon-name

2015-02-13 Thread Colomban Wendling
Hi, Le 14/02/2015 01:18, Roland Koebler a écrit : > I would like to render either an icon or a pixbuf at the same place in > a TreeView. So, I tried to use a CellRendererPixbuf and either set the > pixbuf- or icon-name-property: > > - Use a liststore with two columns, one for the pixbuf, one for

[GI] Generic array type

2015-02-13 Thread Colomban Wendling
Hi, I'm trying to generate a gobject-introspection binding for a library, and am facing some problems I couldn't find the answer to. First, no, the library isn't really GObjec-based. However that was not the problem, I added appropriate boxed GTypes, and the GIR mostly works [1][2]. So, my GIR

Re: Documenting properties and signals with gtk-doc

2014-12-20 Thread Colomban Wendling
Hi, Le 20/12/2014 13:39, Wouter Verhelst a écrit : > [...] > > I wrote a library to deal with joysticks in a GObject/GTK-like way. It > works (including a GTK-based tester tool, although the UI could use some > improvement), and I now want to do the API documentation and also make > sure that gli

Re: Deprecated function ed icons on button

2014-10-06 Thread Colomban Wendling
Hi, Le 06/10/2014 18:23, Gergely Polonkai a écrit : > [...] Creating image buttons may seem a bit harder than before. As far as I can read, he spoke about GtkImageMenuItem, which for some reason I never saw explained got deprecated (possibly because GMenu don't support icons for another reason I

Re: volume meter widget causes crash

2014-09-21 Thread Colomban Wendling
Le 21/09/2014 12:35, Joël Krähemann a écrit : > Am Samstag, den 20.09.2014, 14:54 +0200 schrieb Joël Krähemann: >> Why do I get the following error: >> >> ** >> Gdk:ERROR:/tmp/buildd/gtk >> +2.0-2.24.10/gdk/gdkregion-generic.c:1110:miUnionNonO: assertion failed: >> (y1 < y2) >> Abgebrochen You'd n

Re: any ideas for a fix?

2014-08-21 Thread Colomban Wendling
Le 21/08/2014 22:30, Gary Kline a écrit : > [...] > { > printf ("For-Loop(): main with tt = (%d)\n", tt); > label[tt] = gtk_label_new ("1: This is the file name named talk.1.txt"); > gtk_misc_set_alignment (GTK_MISC (label[tt]), 0, 0.5); // left > label[tt] = gtk_label

Re: GTK+3 styles and themes

2014-04-01 Thread Colomban Wendling
Le 01/04/2014 11:49, Roland Koebler a écrit : > [...] > > Is there any documentation of this? > Especially when to use "background-color" and when to use "background"? > The "GtkCssProvider"-documentation only mentions "background-color". https://bugzilla.gnome.org/show_bug.cgi?id=656461 The pro

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Colomban Wendling
Le 24/03/2014 02:11, David Marceau a écrit : > On 03/23/2014 08:36 PM, Joël Krähemann wrote: >> >> The following will compile but is it still correct? >> >> g_atomic_pointer_set(&(returnable_thread->safe_data), >>NULL); > http://developer.gimp.org/api/2.0/glib/glib-Basic-T

Re: [Fwd: dereferencing void *]

2014-03-23 Thread Colomban Wendling
Le 24/03/2014 01:36, Joël Krähemann a écrit : > [...] > > The following will compile but is it still correct? > > g_atomic_pointer_set(&(returnable_thread->safe_data), >NULL); Yes, as the atomic_int* functions expect a pointer to the integer to atomically set, the atomi

Re: g_spawn_sync and child PID

2014-03-15 Thread Colomban Wendling
Le 15/03/2014 21:19, Allin Cottrell a écrit : > I'm reasonably familiar with the usage of both g_spawn_sync and > g_spawn_async, but recently I've found myself wanting to do domething > that seems to fall between the two and I can't quite work out how to do it. > > Here's the task: I want to spawn

Re: GTK signals question.

2014-03-05 Thread Colomban Wendling
Le 05/03/2014 19:43, Chris Moller a écrit : > [...] > > gcc supports nested functions as an extension to standard C. I tend to > use them a lot because they operate within the stack frame of the > enclosing function, thereby minimising the amount of information you > have to pass. This is especi

Re: GTK signals question.

2014-03-05 Thread Colomban Wendling
Le 05/03/2014 18:07, Chris Vine a écrit : > On Wed, 05 Mar 2014 09:44:48 -0500 > Chris Moller wrote: >> I was actually writing that testcase when I found a correlation: I'm >> using gcc and my callbacks were nested functions. Pull the callbacks >> out and make them normal, top-level, functions,

Re: "Can't link to Pango"

2014-02-13 Thread Colomban Wendling
Le 13/02/2014 18:37, Bric a écrit : > [...] > GEN gtkresources.c > > (glib-compile-resources:6887): GLib-GObject-CRITICAL **: > /build/buildd/glib2.0-2.24.1/gobject/gtype.c:2706: You forgot to call > g_type_init() > > [...] This looks like you managed to link glib-compile-resources to a too old

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-07 Thread Colomban Wendling
Le 07/01/2014 22:48, Jordan H. a écrit : > > Man, sorry, but I guess I'm still not getting this. > > I've added a GtkTreeViewColumn and GtkCellRenderer to the GtkTreeView: > > > Button Label > True > True > > > > Actually the patch should look like this: > --- button-actions.glade > +++ b

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-06 Thread Colomban Wendling
Le 06/01/2014 22:10, jorda...@fastmail.fm a écrit : > I suppose an attachment would be helpful (weird that it didn't send). OK, better now indeed. So, your problem is that you don't add columns to your tree view. A TreeView [1] displays TreeViewColumns [2], which itself contain CellRenderer [3].

Re: GtkTreeView isn't updating when GtkListStore appended and set

2014-01-06 Thread Colomban Wendling
Hi, Le 06/01/2014 17:26, Jordan H. a écrit : > Attached is the Glade file. The GtkListStore ("liststore_button_list") > is assigned the GtkTreeView ("treeview_button_order"). Looks like the attachment is missing. > The GtkTreeView doesn't seem to reflect the changes made to the > GtkListStore.

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Colomban Wendling
Le 27/11/2013 12:57, Jarosław Sobieszek a écrit : > Hello, > > I'm trying to dynamically modify list based on some action. Program below > should add 3 rows at the top and 3 rows at the bottom of the list for every > click of the button. For some reason it doesn't work - I'm seeing partial > updat

Re: Signal of a button dynamically created

2013-10-28 Thread Colomban Wendling
Le 28/10/2013 16:22, Borja Mon Serrano a écrit : > [...] > > The point here is: how can I know what button was pressed in order to > remove a row? When you connect a handler to a signal, there is a "data" parameter, just pass in some info identifying the row through it: g_signal_connect(

Re: how to label a cairo drawings in gtk+-2.0

2013-10-04 Thread Colomban Wendling
Hi Mahesh, Le 04/10/2013 07:41, Mahesh Chaudhari a écrit : > Hi List, > I have drawn five circles in GtkDrawingArea as below : > > #include > #include > #include > > GtkWidget* window; > GtkWidget* darea; > static gboolean on_expose_event(GtkWidget *widget, GdkEventExpose *event, > g

Re: GTK+ 2: Hide ComboBox item

2013-09-24 Thread Colomban Wendling
Le 24/09/2013 10:17, Alessandro Francesconi a écrit : > Hello, I’m using a GTK+ 2.16 ComboBox and I wondering if there is a > way to set the visibility of a given element programmatically. > > For example, having a ComboBox with 10 elements I want to hide (so > more than setting it to inactive) th

Re: GTK+ 3.10 released

2013-09-23 Thread Colomban Wendling
Le 23/09/2013 21:07, Matthias Clasen a écrit : > GTK+ 3.10.0 is now available for download at: > > [...] > - Support for multiple screens per display has been removed. This >was only ever supported on X11, and is an exceedingly rare setup >nowadays. The display-screen relation is now 1:1

Re: how to set link-color on Label

2013-08-27 Thread Colomban Wendling
Le 27/08/2013 18:52, Ondrej Tuma a écrit : > Oh, yes, sorry, in GTK 2. …then you can use gtk_widget_set_name() and use custom RC styles: label.set_name("mylabel"); ... style "mylabel-style" { ... } widget "*.mylabel" style "mylabel-style" checkout the GtkRC docs

Re: how to set link-color on Label

2013-08-27 Thread Colomban Wendling
Le 27/08/2013 17:31, Ondrej Tuma a écrit : > Hi all, > > i want to change link-color on some Label widgets, but only on some. > > I can't find how i can do that. I will use in vala, but never mind, if > the example will be in python or C ;) The GTK3 way would be either adding a style provider to

Re: Aligning ToolItem To Right in Toolbar

2013-08-27 Thread Colomban Wendling
Le 27/08/2013 08:07, Joshua Strobl a écrit : > [...] and set to expand horizontally (set_hexpand(true)). Tip: you could use the Vala-style property setter, toolbar.hexpand=true > As my Pastebin (link below) shows, the second > (exampleGlobalMenuContainer) ToolItem is left aligned, which is > comp

Re: Mouse events on a Cairo Context

2013-06-30 Thread Colomban Wendling
Le 30/06/2013 21:10, Borja Mon Serrano a écrit : > Hi all, > > [...] > > 1 - I think the best way is to create a signal to the cairomm context, but > I didn't see anything to do that. Maybe the way would be to create a cairo > surface or something like that. I don't think Cairo has this kind of

Re: Invisible GtkImage

2013-06-22 Thread Colomban Wendling
Le 23/06/2013 00:30, Kip Warner a écrit : > On Sun, 2013-06-23 at 00:08 +0200, David Nečas wrote: >> [...] >> This might not be exactly what you need but as I noted I don't get where >> the problem is... > > Yes, your code is similar to what I had tried before with GtkImage, > only you're subclass

Re: help with "about" and "help" in gtk-app

2013-06-10 Thread Colomban Wendling
Le 10/06/2013 17:53, Rudra Banerjee a écrit : > Dear friends, > I am writing a code with gtk+3. > I am facing problems with linking the icons and help files with the > code. > > [...] > > GtkWidget *window; > void help_about (GtkMenuItem *helpabout, GtkWidget *window) > { > [...] > gchar *hst

Re: GtkScrolledWindow containing GtkTextView containing a TextBuffer can't keep at bottom of Buffer

2013-06-10 Thread Colomban Wendling
Hi, Le 10/06/2013 12:26, Thomas A. Moulton a écrit : > On 06/09/2013 05:21 PM, Thomas A. Moulton wrote: >> Ok here is a single file example of my code... it works the same way >> it does in my larger project >> >> Any suggestions would be GREATLY appreciated! >> >> tom >> > What happens is when yo

Re: VTE questions

2013-05-27 Thread Colomban Wendling
Le 27/05/2013 08:19, Kip Warner a écrit : > Hey list, > > I have a VTE widget. In order for it to be scrollable, should it be > nested within a GtkViewport or a GtkScrolledWindow? I couldn't tell from > its documentation. The VteTerminal widget implements GtkScrollable, so the answer is "GtkScrol

Re: Updating GUI during long operation

2013-04-26 Thread Colomban Wendling
Le 26/04/2013 03:59, Kip Warner a écrit : > On Sat, 2013-04-20 at 18:54 +0200, Colomban Wendling wrote: >> Just never do something time consuming in the main loop thread. If you >> don't there should not be any lag. > > Hey Colomban. The time consuming task is in it

Re: regarding IconView use

2013-04-23 Thread Colomban Wendling
Hi, Le 23/04/2013 15:01, Tristan Van Berkom a écrit : > It's not the expected behaviour. > > GtkIconView lays out it's icons based on the available/allocated width, > unless the "columns" property is explicitly set, it always has. > > It's possible that there was a bug earlier on in 3.x (3.2 ? 3

Re: Updating GUI during long operation

2013-04-20 Thread Colomban Wendling
Hi, Le 20/04/2013 18:10, Kip Warner a écrit : > Hey list, > > I have a separate thread from the main loop that performs some long and > resource intensive operation. The GUI displays an animated GIF while > this process takes place via Gdk.PixbufAnimation. > > Sometimes the animation and the re

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Colomban Wendling
Le 19/02/2013 01:45, Rena a écrit : > On Mon, Feb 18, 2013 at 9:24 AM, Colomban Wendling > [...] > > Well, my emulator gets the pixel data from gdk_pixbuf_get_pixels() and > writes into that buffer directly; that way it doesn't have to know > anything about GDK and can draw

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Colomban Wendling
Le 18/02/2013 14:50, Rena a écrit : > On Mon, Feb 18, 2013 at 8:35 AM, Colomban Wendling > wrote: >> Hi, >> >> Le 18/02/2013 11:10, Rena a écrit : >>> Hi, just joined the mailing list, been using GTK and related projects >>> for a while now. Recentl

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Colomban Wendling
Hi, Le 18/02/2013 11:10, Rena a écrit : > Hi, just joined the mailing list, been using GTK and related projects > for a while now. Recently I've been developing a Game Boy emulator > that uses GtkDrawingArea and GdkPixbuf to display the game screen. > > In addition to the game output I want to al

Re: open an existing file in buffer and write on it

2013-01-25 Thread Colomban Wendling
Le 25/01/2013 17:02, Damien Caliste a écrit : > [...] > > The idea when you want to change a file on disk is (not too big) : > - generate a buffer of the full content of the file in memory, using > GString for instance > (http://developer.gnome.org/glib/unstable/glib-Strings.html) since > th

Re: Gtk.RecentManager doesn't flush updates

2012-12-21 Thread Colomban Wendling
Le 21/12/2012 16:02, Kerrick Staley a écrit : > Hello, > > I'm trying to modify the recent files list from a Vala program. I construct > a Gtk.RecentManager and call its remove_item() and add_full() methods, but > neither has any effect; the recent files list is unchanged (and > ~/.local/share/rec

Re: Why doesn't my label show up in the window

2012-08-27 Thread Colomban Wendling
Le 27/08/2012 11:05, Colomban Wendling a écrit : > Le 27/08/2012 00:20, Frank Cox a écrit : >> On Sun, 26 Aug 2012 22:49:26 +0200 >> Colomban Wendling wrote: >> >>> For example, I attached a dummy program that replicates yours but using >>> threadi

Re: Why doesn't my label show up in the window

2012-08-27 Thread Colomban Wendling
Le 27/08/2012 00:20, Frank Cox a écrit : > On Sun, 26 Aug 2012 22:49:26 +0200 > Colomban Wendling wrote: > >> For example, I attached a dummy program that replicates yours but using >> threading. > > Thanks loads for all of the information! Unfortunately, the

Re: Why doesn't my label show up in the window

2012-08-26 Thread Colomban Wendling
Hi, I haven't read the linked program, but based on the dummy program and the previous discussion: Le 26/08/2012 19:13, Frank Cox a écrit : > On Sun, 26 Aug 2012 17:36:01 +0700 > Ardhan Madras wrote: > > [...] > > The objective of the program is to maintain an email mailing list for my > theatr

Re: no joy...

2011-12-20 Thread Colomban Wendling
Le 20/12/2011 23:52, Gary Kline a écrit : > > thanks to those who have tried to help, mostly off-list. i can't > believe how hard this is. > > i want to open a base window: > > gtk_window_set_title(GTK_WINDOW(window),"testing"); > gtk_widget_set_usize(GTK_WIDGET(window),200,3

Re: GTK+ TreeView: Different CellRenderers on the same Column

2011-10-17 Thread Colomban Wendling
Le 17/10/2011 13:53, Stefan Salewski a écrit : > I am working on a configuration file editor for an graphical > application. Configuration consists of strings, numbers and boolean > values. About 25 values total. > > I can use individual widgets for each property, but for larger > quantities a lis

Re: GList empty after iteration?

2011-09-12 Thread Colomban Wendling
Le 12/09/2011 21:10, Craig a écrit : > Hi All, > > I am confused about GList. My application is parsing a file and creating > midi data with it. I am using GList to store the midi data. I have > created a GtkListStore to view the parsed data (to insure I am parsing > the data properly). So, belo

Re: Cell rendering issue

2011-06-20 Thread Colomban Wendling
Hi, Le 20/06/2011 19:45, Thomas Bollmeier a écrit : > Hi GTK-experts, > > currently I work on a small location finder application > (http://www.bolles-werk.org/software-projects/quoloco.html). Basically > the application shall allow users to search for arbitrary keywords. The > results are displa

Re: GSource object lifetime

2011-05-03 Thread Colomban Wendling
Le 03/05/2011 20:49, Thomas Stover a écrit : > trying to stop a memory leak (2.24.1 x86_64)... > > I'm repetitively calling g_idle_source_new(), g_source_set_callback(), > g_source_attach() to get an idle callback to run in a separate thread. The > callback in question always exits with FALSE.

Re: multiple tree views

2011-05-01 Thread Colomban Wendling
Hi, Le 01/05/2011 15:03, Pavol Klačanský a écrit : > Hi, I need in my about 5 and more treeviews. I created one using glade, > but I don't know how can I use it multiple times, gtk says something > like this > >> (client:25913): Gtk-WARNING **: Attempting to add a widget with type >> GtkTreeView

Re: GOption & friends

2011-03-21 Thread Colomban Wendling
Le 21/03/2011 17:03, John Coppens a écrit : > On Mon, 21 Mar 2011 15:42:17 +0100 > Colomban Wendling wrote: > >>> The form (-de), frequently used, fails though it is advertised >>> in the Command line parser description: >>> >>> http://library.g

Re: GOption & friends

2011-03-21 Thread Colomban Wendling
Le 21/03/2011 15:26, John Coppens a écrit : > Hello people, Hi you, > I've been trying to get GOption and friends working - but it seems > we're not on friendly terms. > > 1) I defined a GOptionEntry as: > > {"debug", 'd', 0, G_OPTION_ARG_STRING, &dbg, "Debug options", "opts"}, > > and find th

Re: GtkSwitch — lack of specific signal

2011-03-05 Thread Colomban Wendling
Le 05/03/2011 16:36, Tadej Borovšak a écrit : > Hello. > >> I checked. notify::active is not mentioned anywhere in any of those! >> (I used my browser's find - can you find it mentioned somewhere?) >> Cheers, John Lumby > > Those two links wer

Re: GtkSwitch — lack of specific signal

2011-03-04 Thread Colomban Wendling
Le 05/03/2011 03:17, John Lumby a écrit : > > A! Thank you Tadej.No, mine had only two parameters, the obj > ptr and the data ptr.I added the paramspec in between and now all works > perfectly. > By the way - this seems a bit unpleasant, that some callbacks have a > prototype

Re: treeview and scrolledwindow

2011-02-21 Thread Colomban Wendling
Le 21/02/2011 23:06, Alexander Nagel a écrit : > Hi, > > i have a question about treeview. Do i need to add a treeview in a > scrolledwindow? I always did it this way but it seems to work without > it. Which way is the better one? I would like to hear your > suggestion/opinions. If you don't pack

Re: g_remove

2011-02-19 Thread Colomban Wendling
Le 19/02/2011 15:06, Jaroslav Šmíd a écrit : > #include > > int main(int argc, char **argv) > { > gint64 a; > return 0; > } > > - doesn't compile on x86-32 linux with glibc when I remove all typedefes > and occurences of long long in header files (long long is not part of > C89 standard and

Re: g_remove

2011-02-17 Thread Colomban Wendling
Le 17/02/2011 20:46, Costin Chirvasuta a écrit : > On Thu, Feb 17, 2011 at 9:11 PM, Craig Bakalian > wrote: >> Hi David and KC, >> >> The did the trick. But it is odd behavior. >> >> #include was already in my includes. > > Then g_remove must be a macro for a function in glib/gstdio.h, not std

Re: scan code for required gtk version

2011-01-01 Thread Colomban Wendling
Hi, Le 01/01/2011 16:30, Dan McMahill a écrit : > Is there a way to scan ones source code automatically to determine the > minimum required version of gtk and also glib? The reason I ask is I've > been involved in a project that doesn't really use lots of the most > cutting edge features and in g

Re: Notebooks and page numbers

2010-08-02 Thread Colomban Wendling
Le 02/08/2010 14:50, Jeff Clough a écrit : > On Mon, 2010-08-02 at 20:22 +0800, Gregory Hosler wrote: > >> a pages page number can and will change whenever it's position in the number >> sequence 0 to N-1 changes. > > Are there situations where something internal to GTK will change this? > To be

Re: Global GList in gtk+ application

2010-06-12 Thread Colomban Wendling
Le 12/06/2010 08:03, Alexander Kuleshov a écrit : > [snip] > > I have a function bulid my list: > gboolean build_list() > { >Data->list = g_list_append(Data->list, "First "); >Data->list = g_list_append(Data->list, "Second "); >Data->list = g_list_append(Data->list, "Third "); > >g_

Re: gtk_button_new_from_stock () does not find icons.

2010-06-05 Thread Colomban Wendling
Le 05/06/2010 11:07, N James Bridge a écrit : > On Sat, 2010-06-05 at 01:13 +0200, Colomban Wendling wrote: > >> Le 04/06/2010 21:33, N James Bridge a écrit : >> >>> I don't know if this is a fedora problem or a gtk one... >>> >>> I have b

Re: gtk_button_new_from_stock () does not find icons.

2010-06-04 Thread Colomban Wendling
Le 04/06/2010 21:33, N James Bridge a écrit : > I don't know if this is a fedora problem or a gtk one... > > I have been writing some short gtk programs, as a learning exercise. So > far as I can see, I should be able to add items from stock, but the > images are missing and all I get are the defau

Re: GIO input/output streams for stdout, stderr and stdin

2010-04-09 Thread Colomban Wendling
Tor Lillqvist a écrit : >>> Then, how portable applications are supposed to read >>> and write to standard input and output through GIO streams? > > Just use the C library instead? > > --tml > Well, no, i can't do that: I need that GMemory{In,Out}putStream GIO feature in order to treat data tha

Re: GIO input/output streams for stdout, stderr and stdin

2010-04-09 Thread Colomban Wendling
Colomban Wendling a écrit : > Hi, > > I'm not completely sure where I should ask about this but then... let's > try here! > > I have an application that manages data through G{Input,Output}Streams, > and I would like to be able to read and write directly from

GIO input/output streams for stdout, stderr and stdin

2010-03-25 Thread Colomban Wendling
Hi, I'm not completely sure where I should ask about this but then... let's try here! I have an application that manages data through G{Input,Output}Streams, and I would like to be able to read and write directly from and to stdin and stdout in a portable manner. As I understand GUnix{Input,Outpu

Re: toolbutton label not visible in gtk 2.18

2009-10-30 Thread Colomban Wendling
Hi , John Stebbins a écrit : > On 10/30/2009 09:24 AM, John Stebbins wrote: >> I just installed fedora 12 beta on one machine and ubuntu 9.10 on >> another. Both have gtk 2.18.3. When I run my application on either >> system, my toolbutton labels are not visible. Am I missing some new >> propert

GtkUIManager toolbar menus

2009-05-31 Thread Colomban Wendling
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone, I'm using a GtkUIManager menu and toolbar definition (inside a GtkBuilder UI definition, but I don't think it is related) and I would create a drop-down menu in the toolbar, containing some of my menu elements. What I want is something li