how to remove the contents of vbox?
hello, I got this func: static void (GtkWidget *vbox) {...}, when passed in an vbox, it should insert a GtkWidget *scrolled_window into the vbox, but I want to clear the contents of vbox first,otherwise the old contents will be displayed as well as the newly inserted widget. I am wondering how to implement this.Any tips will be appreciated. -- - Best regards ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: how to remove the contents of vbox?
Hello. hello, I got this func: static void (GtkWidget *vbox) {...}, when passed in an vbox, it should insert a GtkWidget *scrolled_window into the vbox, but I want to clear the contents of vbox first,otherwise the old contents will be displayed as well as the newly inserted widget. I am wondering how to implement this.Any tips will be appreciated. Just call gtk_widget_destroy() on previously inserted scrolled window. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
How to handle GIO channel when the other side kills the connection
Hi, I am using GIOChannel in my gtk application. I am able to read/write to GIO channel with a 'client' application, my gtk application serves as a 'server'. But when the 'client application' dies unexpectedly, I see a lot of these errors from my gtk application ('server') terminal: GLib-CRITICAL **: g_io_channel_read_chars: assertion `channel-is_readable' failed GLib-CRITICAL **: g_io_channel_read_chars: assertion `channel-is_readable' failed GLib-CRITICAL **: g_io_channel_read_chars: assertion `channel-is_readable' failed Can you please tell me what does that mean? And how can I fix it? Thank you. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Setting a Tree View Cell to insensitive and uneditable
Is it possible to set a cell in a specific column and row to insensitive and uneditable and not affect the rest of the cells in the same column? Yes, you should change your TreeModel to have two additional boolean columns to map the sensitive and editable boolean field for your TreeViewColumn, something like (let's get the simple case of a single editable text field): mymodel = gtk_list_store_new(3, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN); gtk_list_store_set(mymodel, it, 0, Editable Cell, 1, TRUE, 2, TRUE, -1); gtk_list_store_set(mymodel, it, 0, Not editable Cell, 1, TRUE, 2, FALSE, -1); gtk_list_store_set(mymodel, it, 0, Insensitive Cell, 1, FALSE, 2, FALSE /*may be also true*/, -1); gtk_tree_view_insert_column_with_attributes(mytreeview, -1, My column title, r, markup, 0, sensitive, 1, editable, 2, NULL); I've written not the full code but just the lines that should differ from your actual implementation :) -- Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Setting a Tree View Cell to insensitive and uneditable
When creating your model set a specific column with a boolean property. e.g : enum { STRING_COLUMN =0, EDITABLE_COLUMN, N_COLUMN } ... gtk_list_store_new(N_COLUMN, G_TYPE_STRING, G_TYPE_BOOLEAN); Then in the treeview create a column using gtk_tree_view_column_new_with_attributes(title, text_cell,string, STRING_COLUMN, editable, EDITABLE_COLUMN, NULL); and when fillling your model precise which row is editable. Hope this help, regards ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
GLib 2.25.0 released
GLib 2.25.0 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.25/ http://download.gnome.org/sources/glib/2.25/ sha256 sums: 3815e6c0053e488fdbde032de133d7218953c7c9a1b11839dbb828db6ba023c3 glib-2.25.0.tar.bz2 6c54ec9d941d3a435e4f6081a9bbff1d596de705a8360086a587597eadc55e24 glib-2.25.0.tar.gz This is the first development release leading up to GLib 2.26. Notes: * This is unstable development release. While it has had a bit of testing, there are certainly plenty of bugs remaining to be found. This release should not be used in production. * Installing this version will overwrite your existing copy of GLib 2.24. If you have problems, you'll need to reinstall GLib 2.24. * GLib 2.26 will be source and binary compatible with the GLib 2.24 series; however, the new API additions in GLib 2.25.0 are not yet finalized, so there may be incompatibilities between this release and the final 2.26 release. * Bugs should be reported to http://bugzilla.gnome.org. About GLib == GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. More information about GLib is available at: http://www.gtk.org/ An installation guide for the GTK+ libraries, including GLib, can be found at: http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html Overview of Changes from GLib 2.24.0 to GLib 2.25.0 === * The GSettings framework has been merged. This provides the API to replace GConf. DConf will provide a backend implementation for it. GConf will also provide a backend implementation to ease the transition. We provide utilities to assist with schema conversion and data migration, as well as a porting guide. * Translation updates: Bengali Catalan Danish Gujarati Marathi Thai Traditional Chinese Thanks to our contributors: Ryan Lortie Vincent Untz Christian Persch David Zeuthen Javier Jardón Benjamin Otte Tor Lillqvist Behdad Esfahbod Lars Ellenberg April 19, 2010 Matthias Clasen ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Setting a Tree View Cell to insensitive and uneditable
On 04/19/2010 01:34 PM, Nicolas Soubeiran wrote: When creating your model set a specific column with a boolean property. e.g : enum { STRING_COLUMN =0, EDITABLE_COLUMN, N_COLUMN } ... gtk_list_store_new(N_COLUMN, G_TYPE_STRING, G_TYPE_BOOLEAN); Then in the treeview create a column using gtk_tree_view_column_new_with_attributes(title, text_cell,string, STRING_COLUMN, editable, EDITABLE_COLUMN, NULL); and when fillling your model precise which row is editable. Hope this help, regards Both replies seem to be saying the same thing, but I still don't understand why the attribute values need to be stored in other columns. Also I don't see how storing the attributes in other columns affect an individual cell. So this is the way to control the editability and sensitivity of a single cell without changing the cells above and below the cell in the same column. Does this apply for all attributes? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list