Re: Sharing Gtk.Adjustment objects among several Gtk.SpinButton widgets

2016-11-15 Thread Damien Caliste
Hello, Le 14/11/2016, Pozz Pozz a écrit : > Of course, I'm supponsing the case of several parameters that have > different values but the same range properties (min, max, page > step, ...) You may implement your use case using bindings. You have a master GtkAdjusment, or even

Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Damien Caliste
Hello, Le 21/07/2015, Roger Matthews roger.matth...@hotmail.com a écrit : which results from a simple straight line equation, and*/ /* that extends beyond the bounds of the window. Reading your code quickly, it seems to me that, you're drawing indeed the line outside the drawing area, *but* the

Re: GtkPopover bug ?

2014-06-19 Thread Damien Caliste
Hello, Le 18/06/2014, Victor A. Santos victoraur.san...@gmail.com a écrit : window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_widget_set_size_request (window, 300, 300); popover = gtk_popover_new (window); To my understanding, the popover is refering to a specific widget it points

Re: Developing a widget - help with introspection and feedback

2013-10-02 Thread Damien Caliste
Hello, Le 01/10/2013, Rena hyperhac...@gmail.com a écrit : Hi all, I'm developing my first GTK widget. I have it working OK, but I can't get g-ir-scanner to cooperate. g-ir-scanner will generate a small executable linked to your library to get info from the objects you have (for all _get_type()

Re: writing to a buffer: help

2013-01-30 Thread Damien Caliste
Hello, Le 30/01/2013, Rudra Banerjee rudra.baner...@aol.co.uk a écrit : My second question in this is that, I have created a buffer from a file in a different function as char* buffer; gsize length; GError* error=NULL; filename =

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

2013-01-25 Thread Damien Caliste
Hello, Le 25/01/2013, Rudra Banerjee rudra.baner...@aol.co.uk a écrit : But is it so tough? database and all that? For managing several bibliography files, that should be better yes. All I want to do is to have the ability of editing an existing file. Since directly editing the file is not

Re: GTK + Clutter next step(s)

2011-10-10 Thread Damien Caliste
Hello, Le 10/10/2011, Benjamin Otte o...@gnome.org a écrit : - Port selected applications from clutter-gtk/GtkGLExt - Which ones? - Can we get the app authors to do this? I'm developping a small software for scientific visualisation in the domain of atomistic simulations (V_Sim,

Re: GTK+ 3.0.12

2011-07-28 Thread Damien Caliste
Hello, Le 28/07/2011, Petr Tomasek toma...@etf.cuni.cz a écrit : Is there more info about this? Does it mean a user will no more be able to choose an exact location where to save the file? Seems to me like a rather big change, not something that should go in the minor release. Frederico who

Re: Gtk-CRITICAL - getting meaningful information

2010-06-11 Thread Damien Caliste
Hello, Le 11/06/2010, Mick bare...@tpg.com.au a écrit : object class=GtkTextView id=chat_view property name=visibleTrue/property property name=can_focusTrue/property property

Re: how to get the parent of a selected row in treeview?

2010-04-29 Thread Damien Caliste
Hello, Le 26/04/2010, Arthur 1989 arthur19891...@gmail.com a écrit : Although I can get selection with gtk_tree_selection_get_selected(), but i don't know how to get the selected row's parent.for example, when i click on Ubuntu 10.04,how to get its' parent Linux? You can use

Re: GtkTable Question

2009-03-05 Thread Damien Caliste
Hello, Le 23/02/2009, Kevin DeKorte kdeko...@gmail.com a écrit : table will do what I want since it is a simple n x 2 layout. But what I want is that last row of the table to use up any extra space on the dialog When you pack your table in the dialog, for instance inside vbox, ask to use all

Re: Gio memory management

2008-10-14 Thread Damien Caliste
Hello, Le 14/10/2008, nico [EMAIL PROTECTED] a écrit : And here is the source code of the program: http://yojik.shtooka.net/gio.c I didn't run nor check extensively the program but maybe there is a memory leak coming from the path you build with g_build_filename(). The documentation states that

Re: simple question about gtk_notebook

2008-09-26 Thread Damien Caliste
Hello, Le 26/09/2008, Vasiliy Tolstov [EMAIL PROTECTED] a écrit : Hello. I have this code (window with 2 tabs), if i'm try to run - displays only window without tabs, where is error ? Isn't the gtk_container_add(GTK_CONTAINER(window), notebook); missing? Damien.

Re: Private data problems

2008-09-16 Thread Damien Caliste
Hello, Le 15/09/2008, Liam O'Boyle [EMAIL PROTECTED] a écrit : First up, the GtkNotebook switch-page event returns a GtkNotebookPage, which is of incredibly little use. Yes, but the next argument is an int with the page number. Then one can use gtk_notebook_get_nth_page() to get the child

Re: GtkTreeView row colors

2008-08-26 Thread Damien Caliste
Hello, Le 26/08/2008, Roland Roberts [EMAIL PROTECTED] a écrit : I'm having trouble figuring out how to change the font color/weight for each row individually in my GtkTreeView. Have a look to this answer: http://www.mail-archive.com/gtk-app-devel-list%40gnome.org/msg11865.html Don't hesitate

Re: ListStore/TreeView with row based settings for columns

2008-07-24 Thread Damien Caliste
Hello, Le 24/07/2008, Robert G. [EMAIL PROTECTED] a écrit : Hello, I was wondering if there's any way to have a ListStore/TreeView have rows xalign'd to different sides of a column. Yes, it is possible. To do things on a per row basis, use the model. Reserve some entries in your model to tune

Re: GtkCellRenderer and stock images

2008-07-24 Thread Damien Caliste
Hello, Le 24/07/2008, Robert G. [EMAIL PROTECTED] a écrit : stock-id then when storing elements in a ListStore they simply add (GTK_STOCK_...) instead of using a GdkPixbuf. Yes, but stock-id waits for a string. In your code, the column 0 is of kind GDK_TYPE_PIXBUF while you pass a gchar* to it:

Re: Location entry in GtkFileChooser

2008-04-15 Thread Damien Caliste
Hello, Le 15/04/2008, Carlos Pereira [EMAIL PROTECTED] a écrit : The reason is, in my app, I accept local and remote addresses as well. It works I've never used this function, so I may be wrong, but you may try gtk_file_chooser_get_uri() instead of gtk_file_chooser_get_filename() to retrieve

Re: gtktextview render hint-rules effect

2008-03-17 Thread Damien Caliste
Hello, Le 17/03/2008, mbrz [EMAIL PROTECTED] a écrit : How can I realise a hint-rules effect like gtktreeview to have lines rendered with alternating row colors on my gtktextview widget ? You can do this: g_object_set(G_OBJECT(treeView), rules-hint, TRUE, NULL); When you read the

Re: Scrollbar widget

2008-02-21 Thread Damien Caliste
Hello, Le 21/02/2008, Ajax John [EMAIL PROTECTED] a écrit : Can anyone give me a small example how a scrollbar widget is used .Suppose with text box widget or list widget. You have to use a scrolledWindow windget, see http://library.gnome.org/devel/gtk/stable/GtkScrolledWindow.html . The

Re: Is it possible to show a image in the notebook tab label place?

2007-12-17 Thread Damien Caliste
Hello, Le 17/12/2007, Binary Chen [EMAIL PROTECTED] a écrit : I want to show a picture in the notebook tab label place, instead just show a plain text, how can I do this? The tab label is not limited to GtkLabel. You can put whatever widget you want (an image, a button...), see:

Re: notebook tab with other widget

2007-11-13 Thread Damien Caliste
Hello, Le 12/11/2007, sphurti durgade [EMAIL PROTECTED] a écrit : i am using notebook in my application. i want to reduce the tab size and placing other widget next/near to tab I don't think this is tractable with GTK directly (the area near the tabs is Notebook private), but I let other list

Re: Listbox, Treeview and attaching pointers to rows

2007-10-24 Thread Damien Caliste
Hello, Le 24/10/2007, Arto Karppinen [EMAIL PROTECTED] a écrit : Row one - Data pointer 1 Row two - Data pointer 1 Row n+1 - Data pointer 1 How would one accomplish such amazing task? Your data pointer should added in your model: enum { COL_LABEL, COL_DATA, NB_COLS

Re: Cell Renderer Combo in a Treeview

2007-09-13 Thread Damien Caliste
Hello, Le 13/09/2007, dhk [EMAIL PROTECTED] a écrit : The attached and inline program below illustrates the problem I'm having with rendering a combo box in a treeview. Ok, two things : When your callback is triggered, it must change the TreeStore (which is rendered in the treeview), not

Re: Cell Renderer Combo Callback

2007-09-12 Thread Damien Caliste
Hello, Le 12/09/2007, dhk [EMAIL PROTECTED] a écrit : I have a combo render in a treeview and I can't get the callback to set the value once it's selected. I didn't test the code you gave, so can't be sure, but I suggest to remove the « text, Stock, » property from the combo rendrer.

Re: Cell Renderer Combo Callback

2007-09-12 Thread Damien Caliste
Hello, Le 12/09/2007, dhk [EMAIL PROTECTED] a écrit : Thanks, but it still doesn't work. I think the problem is in getting the iter for the list store which is used in the combo render or it might be working and just not getting rendered to be visible. I'm fairly sure the problem is in the

Re: gtk_tree_store_set() repeats value

2007-08-16 Thread Damien Caliste
Hello, As a side question, I'm a little confused about the text property in gtk_tree_view_insert_column_with_attributes(). What is this the text property to? There is a little misunderstanding in the function gtk_tree_view_insert_column_with_attributes() here. The explanations for the ... in

Re: Filtering GtkComboBoxEntry input

2007-08-13 Thread Damien Caliste
Hello, On a related note: Is there an elegant way to directly set the text for the entry to some arbitrary text? I've read in the API documentation http://developer.gnome.org/doc/API/2.0/gtk/GtkComboBoxEntry.html#gtk-combo-box-entry-new that the combox_entry has an entry as child, so I access

Re: GtkTreeView+vscroll in hbox

2007-08-10 Thread Damien Caliste
Hello, Le 10/08/2007, Prasanna Kumar K [EMAIL PROTECTED] a écrit : gtk_box_pack_start (GTK_BOX(hbox), treeview, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX(hbox), vscroll, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX(vbox), hbox, TRUE, TRUE, 1); the problem is, in hbox the width of hbox

Re: gtk_drawing_area and scroll events

2007-07-23 Thread Damien Caliste
Hello, Le 21/07/2007, Martin Fischer [EMAIL PROTECTED] a écrit : With that code scroll_event are emitted when the mouse wheel is turned, but why? I hope I'm not speeking wrong, but the scroll event is activated either by the GDK_BUTTON_PRESS_MASK or the GDK_SCROLL_MASK. So puting one of them