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

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

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: 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

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

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 ls_

Re: Reading row from a ComboBox

2007-09-28 Thread Damien Caliste
Hello, Le 28/09/2007, [EMAIL PROTECTED] a écrit : > 1) how can I get a valid iter from the tree model? In your application, in the callback of the "find" button, use gtk_combo_box_get_active_iter() to get the iter from the selected entry in your combobox. > 2) when I obtain the current iter, how

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,

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 lis

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: http://libra

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 t

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 documen

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: Slow treemodel loading

2008-06-11 Thread Damien Caliste
Hello, Le 07/06/2008, Jeffrey Barish <[EMAIL PROTECTED]> a écrit : > improves a bit. If I never set the sort column ID, performance > improves even more. If I'm not wrong, you may be interested with gtk-list-store-insert-with-values() function: http://library.gnome.org/devel/gtk/unstable/GtkListS

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 t

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 hesita

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 chil

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: 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 t

Re: GtkTable Question

2009-03-05 Thread Damien Caliste
Hello, Le 23/02/2009, Kevin DeKorte 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 the space: gtk_bo

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 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 gtk_tree_model_iter_parent () when d

Re: Gtk-CRITICAL - getting meaningful information

2010-06-11 Thread Damien Caliste
Hello, Le 11/06/2010, Mick a écrit : > > True > True > chat_buffer > > GtkTextView *chat_view; > GtkTextBuffer *chat_buffer; > GtkTextIter start, end; > GtkTextIter iter; > > mai

Re: GTK Widget assertion problem

2010-06-11 Thread Damien Caliste
Hello, Le 10/06/2010, Shawn Bakhtiar a écrit : > 2.2) There is probably a memory leak somewhere. Where the structure of > the application (the compiled code) puts that pointer outside the > reach of the overflow so when you re-wrote it, it magically worked > (voodoo appearing indeed). I agree on

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

2013-01-25 Thread Damien Caliste
Hello, Le 25/01/2013, Rudra Banerjee 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 recommended, this is the

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

2013-01-28 Thread Damien Caliste
Hello, Le 25/01/2013, Rudra Banerjee a écrit : > What I have ended up with is something like: > FILE *fopf = fopen(filename, "a" ); > if (!fopf){ > filename="Untitled.bib"; > fopf= fopen(filename,"a"); > } > char buffer[]="Hello World"; > int buf_size= strlen(buffer)+1; > fwri

Re: writing to a buffer: help

2013-01-30 Thread Damien Caliste
Hello, Le 30/01/2013, Rudra Banerjee 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 = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); > g_file_

Re: Developing a widget - help with introspection and feedback

2013-10-02 Thread Damien Caliste
Hello, Le 01/10/2013, Rena 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() routine you have).

Re: Scrolling a Cairo drawing-area or Gtk layout

2015-07-27 Thread Damien Caliste
Hello, Le 21/07/2015, Roger Matthews 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 drawing area has the siz

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 better a derived GOb