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
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
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
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
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.
>
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
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_
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
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,
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
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
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
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
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
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
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
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
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
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.
__
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
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
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
Hello,
Le 11/06/2010, Mick a écrit :
>
> True
> True
> chat_buffer
>
> GtkTextView *chat_view;
> GtkTextBuffer *chat_buffer;
> GtkTextIter start, end;
> GtkTextIter iter;
>
> mai
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
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
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
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_
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).
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
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
30 matches
Mail list logo