Rendering bug after GTK+2.10.1 with GtkTreeViewCellRenderer

2006-10-17 Thread Peter Clifton
Hi, I'm working on a project which uses a subclassed GtkTextView as a custom cell renderer for displaying and editing multi-line text in a tree view column. I didn't write the code, but it appears plausible. It simply implements the GtkCellEditable interface. Since GTK+-2.10.1, there is a render

Re: A pair of question on TreeViews

2006-10-17 Thread Gabriele Greco
Samuel Cormier-Iijima wrote: > The GtkTreeView tutorial has an example on how to make custom cell > renderers: I know that tutorial very well, the problem is that I have a gtkwidget to display as cell, the custom renderer shows only some basic drawing (boxes), while it seems it's not possible to

Using g_signal_connect in an event handler

2006-10-17 Thread Lorenzo Marcon
Hi to all, this is my first experience with GTK+ and my first post here too. I'm currently writing a small application using GtkNotebook. (Not multi-thread or multi-process) My application works in this way: - The main function draws the main GUI and associate some event handlers to some buttons

Use cairo to write widgets?

2006-10-17 Thread Alexandre
Hi everyone. I write some widgets for GTK, and I would like to know if I should use cairo for the drawing operations on these widgets (I want to keep them in GTK standarts)? Because I know that GTK is using Cairo, but, Cairo will replace the GDK for drawing? Thanks.

focus-line-width

2006-10-17 Thread krithika.sivakumar
Hi, I'm unable to use the style property focus-line-width or focus-line-pattern. While running the application it states "GLib-GObject-WARNING **: g_object_set_valist: object class `GtkButton' has no property named `focus-line-pattern' control volumeINFO - GTK_THRD 2006-10-17 17:2

Re: Using g_signal_connect in an event handler

2006-10-17 Thread Yeti
On Tue, Oct 17, 2006 at 01:51:47PM +0200, Lorenzo Marcon wrote: > > int main(int argc, char *argv[]) { > ... > gpointer data[5]; > ... > data[0] = (gpointer) gtk_entry_get_text (GTK_ENTRY (entry)); > data[1] = (gpointer) notebook; > data[2] = (gpointer) progress

To which package does "glade-catalog.dtd" belong ?

2006-10-17 Thread Philippe Bertin
Hello all, Sorry to crosspost, but I think this topic can belong to any of the 3 newslists. If this is not good with you, please indicate me which list is most appropriate, please (please do not flame me). While reading http://glade.gnome.org/docs/catalogintro.html I see it is possible to vali

How do I find out about the selection of a GtkListStore ?

2006-10-17 Thread Dongsheng Song
The document said: GtkList is deprecated and should not be used in newly-written code. When I use GtkListStore, How do I find out about the selection? Dongsheng ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/m

How do I stop the column headings of a GtkListStore disappearing when the list is scrolled?

2006-10-17 Thread Dongsheng Song
The document said: GtkList is deprecated and should not be used in newly-written code. When I use GtkListStore, How do I stop the column headings of a GtkListStore disappearing when the list is scrolled? Thanks, Dongsheng ___ gtk-app-devel-list mail

Re: How do I stop the column headings of a GtkListStore disappearing when the list is scrolled?

2006-10-17 Thread Yeti
On Tue, Oct 17, 2006 at 09:08:53PM +0800, Dongsheng Song wrote: > > When I use GtkListStore, How do I stop the column headings of a > GtkListStore GtkListStore has no column headers, I suppose you mean GtkTreeView. > disappearing when the list is scrolled? Read the documentation http://devel

Re: How do I find out about the selection of a GtkListStore ?

2006-10-17 Thread Yeti
On Tue, Oct 17, 2006 at 09:06:40PM +0800, Dongsheng Song wrote: > When I use GtkListStore, How do I find out about the selection? GtkListStore is the model part, it has no selection. Selection belongs to the view (GtkTreeView) part, and gtk_tree_view_get_selection() gives you the selection object.

Re: To which package does "glade-catalog.dtd" belong ?

2006-10-17 Thread Tristan Van Berkom
Philippe Bertin wrote: > Hello all, > > Sorry to crosspost, but I think this topic can belong to any of the 3 > newslists. If this is not good with you, please indicate me which list > is most appropriate, please (please do not flame me). /me pulls out torch... glade-devel@lists.ximian.com wou

Gtkclipboard and gtk_clipboard_store

2006-10-17 Thread Lorenzo Marcon
I'm trying to use Gtkclipboard, but run into problems. I can't maintain the data in the clipboard once I close my program, even if I use gtk_clipboard_store function. This is my code. It's the handler of a pop-up menu that allows to copy the selected text item of a treeview. gboolean on_copy_t

Implement drag and drop between two TreeViews

2006-10-17 Thread Christopher Backhouse
Hi I have two Treeviews (just lists, they use Liststore) and I want to be able to drag entries from one into the other. What is the correct way to do this? I call enable_model_drag_source on one list and enable_model_drag_dest on the other - the gui behaves as if drag-and-drop will work and the

Re: Launch the default html browser

2006-10-17 Thread Gan3sh
Le vendredi 13 octobre 2006 à 14:12 +0100, John Cupitt a écrit : > On 10/13/06, Gan3sh <[EMAIL PROTECTED]> wrote: > > With Gtk+, is there any way to launch the default html browser > > independently of the operating system ? > > Sadly not (as far as I know). I have a thing with ifdefs for *nix,

Re: To which package does "glade-catalog.dtd" belong ?

2006-10-17 Thread Magnus Bergman
On Tue, 17 Oct 2006 11:58:08 +0200 Philippe Bertin <[EMAIL PROTECTED]> wrote: > Hello all, > > Sorry to crosspost, but I think this topic can belong to any of the 3 > newslists. If this is not good with you, please indicate me which > list is most appropriate, please (please do not flame me). >

RE: Use of fgets, puts, rewind in Gtk+

2006-10-17 Thread Sucheta Ghosh
Thanks a lot, it was indeed a security problem, now it is solved. Sucheta On Fri, 13 Oct 2006, Madhusudan E wrote: > Hi, > There is absolutely no problem in doing file operations in > GTK based applications. > > Just check the validity of your operations. > Check the validity of your file name ,

Re: Using g_signal_connect in an event handler

2006-10-17 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/17/2006 5:17 AM, David Ne?as (Yeti) wrote: > On Tue, Oct 17, 2006 at 01:51:47PM +0200, Lorenzo Marcon wrote: >> int main(int argc, char *argv[]) { >> ... >> gpointer data[5]; >> ... >> data[0] = (gpointer) gtk_entry_get_text (

Re: Using g_signal_connect in an event handler

2006-10-17 Thread Yeti
On Tue, Oct 17, 2006 at 11:02:32AM -0700, Brian J. Tarricone wrote: > On 10/17/2006 5:17 AM, David Ne?as (Yeti) wrote: > > On Tue, Oct 17, 2006 at 01:51:47PM +0200, Lorenzo Marcon wrote: > >> int main(int argc, char *argv[]) { > >> ... > > > > This is quite cumbersome... > > Not to mention the fa

Re: focus-line-width

2006-10-17 Thread Yeti
On Tue, Oct 17, 2006 at 05:38:22PM +0530, [EMAIL PROTECTED] wrote: > > I'm unable to use the style property focus-line-width or > focus-line-pattern. > > While running the application it states > > "GLib-GObject-WARNING **: g_object_set_valist: object class `GtkButton' > has no property named `

Re: using cairo surfaces

2006-10-17 Thread Ivan Baldo
If you have a cairo_t obtained from your expose_event callback and you call it "cr", then on the child widgets you can create a surface with cairo_surface_create_similar( cairo_get_target(cr), CAIRO_CONTENT_COLOR, theWidthOfYourChild, theHeightOfYourChild);. That surface will have the same for

Re: Very strange bug - memory alignment - after upgrading to GLib 2.12.4-1

2006-10-17 Thread Allin Cottrell
On Tue, 17 Oct 2006, Fabricio Rocha wrote: > Some days ago I have posted a piece of code and the > description of a very strange bug -- up to a certain line, a > guint8 variable (part of a dinamically-allocated structure) has > the value 0; and after a call to gtk_combo_box_set_active, wh

selecting menu button from key board

2006-10-17 Thread krithika.sivakumar
Hi, I have implemented a menu button. On mouse event, the popup is happening properly but I need to popup the menu during return key pressed event. Is there something wrong in my code? Is there any other way to do it? Current implementation: g_signal_connect_swapped (G_OBJECT(button_m

Re: selecting menu button from key board

2006-10-17 Thread Yeti
On Wed, Oct 18, 2006 at 11:19:45AM +0530, [EMAIL PROTECTED] wrote: > > I have implemented a menu button. Why? GtkMenuBar+GtkMenuItem, GtkComboBox or GtkToolbar+GtkMenuToolButton all provide this type of behaviour. Why they are not enough? Yeti -- Whatever. ___

Re: using cairo surfaces

2006-10-17 Thread Tommi Sakari Uimonen
Hi, thanks for your answer! > If you have a cairo_t obtained from your expose_event callback and you call > it "cr", then on the child widgets you can create a surface with > cairo_surface_create_similar( cairo_get_target(cr), CAIRO_CONTENT_COLOR, > theWidthOfYourChild, theHeightOfYourChild);.