Customizing GtkFileChooserDialog
Hi, I need to add some extra saving options to a GtkFileChooserDialog. In this purpose I'm trying to access its vbox with: GtkWidget *label = gtk_button_new_with_label (test); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (file_chooser_dialog)-vbox), label); But it has no effect and produces no error on stderr. I also tried with gtk_box_pack_start() Can I customize it this way or must I create my dialog from scratch using GtkFileChooserWidget and adding extra widgets? Regards, -- Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Customizing GtkFileChooserDialog
On 5/28/07, Olivier Guilyardi [EMAIL PROTECTED] wrote: Hi, I need to add some extra saving options to a GtkFileChooserDialog. In this purpose I'm trying to access its vbox with: GtkWidget *label = gtk_button_new_with_label (test); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (file_chooser_dialog)-vbox), label); But it has no effect and produces no error on stderr. I also tried with gtk_box_pack_start() I believe you have to explicitly gtk_widget_show the widget after adding it. Scott ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Customizing GtkFileChooserDialog
On Mon, 2007-05-28 at 17:51 +0200, Olivier Guilyardi wrote: Hi, I need to add some extra saving options to a GtkFileChooserDialog. In this purpose I'm trying to access its vbox with: GtkWidget *label = gtk_button_new_with_label (test); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (file_chooser_dialog)-vbox), label); But it has no effect and produces no error on stderr. I also tried with gtk_box_pack_start() you should also show the widget. but you're better off using gtk_file_chooser_set_extra_widget() which was added for this purposes. Can I customize it this way or must I create my dialog from scratch using GtkFileChooserWidget and adding extra widgets? this is another option, but the extra widget is the preferred way. ciao, Emmanuele. -- Emmanuele Bassi, E: [EMAIL PROTECTED] W: http://www.emmanuelebassi.net B: http://log.emmanuelebassi.net ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Customizing GtkFileChooserDialog
Emmanuele Bassi wrote: On Mon, 2007-05-28 at 17:51 +0200, Olivier Guilyardi wrote: I need to add some extra saving options to a GtkFileChooserDialog. In this purpose I'm trying to access its vbox with: GtkWidget *label = gtk_button_new_with_label (test); gtk_container_add (GTK_CONTAINER (GTK_DIALOG (file_chooser_dialog)-vbox), label); But it has no effect and produces no error on stderr. I also tried with gtk_box_pack_start() you should also show the widget. but you're better off using gtk_file_chooser_set_extra_widget() which was added for this purposes. I didn't see this one.. Thanks :) -- Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Problem with gtk drawing primitive
Hi I'm making a widget from scratch using the tutorial's GtkDial as a base. For now I just want to draw something in my widget. The following error occurs (test_sw:4242): Gtk-CRITICAL **: gtk_paint_polygon: assertion `style-depth == gdk_drawable_get_depth (window)' failed This is the code in the WIDGET_expose callback: blankstyle = gtk_style_new(); blankstyle-bg[GTK_STATE_NORMAL] = sw-color; gtk_style_set_background(blankstyle, w-window, GTK_STATE_NORMAL); gtk_paint_polygon(blankstyle, w-window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, w, NULL, points, 8, TRUE); Please could anyone help me with this problem? Jerome Blondel ___ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
libgnomedbmm-2.9.5 problem with compilation
I've try to compile libgnomedbmm-2.9.5 from sources. After make there was an error looks like : generate_defs_gnomedb.cc:22:47: error: libgnomedb-graph/libgnomedb-graph.h: No such file or directory generate_defs_gnomedb.cc: In function 'int main(int, char**)': generate_defs_gnomedb.cc:84: error: 'GNOME_DB_TYPE_CANVAS' was not declared in this scope generate_defs_gnomedb.cc:85: error: 'GNOME_DB_TYPE_CANVAS_DB_RELATIONS'; was not declared in this scope generate_defs_gnomedb.cc:86: error: 'GNOME_DB_TYPE_CANVAS_QUERY_STRUCT'; was not declared in this scope generate_defs_gnomedb.cc:87: error: 'GNOME_DB_TYPE_CANVAS_ITEM'; was not declared in this scope generate_defs_gnomedb.cc:88: error: 'GNOME_DB_TYPE_CANVAS_ENTITY'; was not declared in this scope generate_defs_gnomedb.cc:89: error: 'GNOME_DB_TYPE_CANVAS_JOIN'; was not declared in this scope generate_defs_gnomedb.cc:90: error: 'GNOME_DB_TYPE_CANVAS_FIELD'; was not declared in this scope generate_defs_gnomedb.cc:91: error: 'GNOME_DB_TYPE_CANVAS_TIP'; was not declared in this scope generate_defs_gnomedb.cc:92: error: 'GNOME_DB_TYPE_CANVAS_CURSOR'; was not declared in this scope generate_defs_gnomedb.cc:93: error: 'GNOME_DB_TYPE_CANVAS_TEXT'; was not declared in this scope make[2]: *** [generate_defs_gnomedb.o] Błąd 1 make[2]: Opuszczenie katalogu `/usr/src/libgnomedbmm-2.9.5/tools/extra_defs_gen' make[1]: *** [all-recursive] Błąd 1 make[1]: Opuszczenie katalogu `/usr/src/libgnomedbmm-2.9.5/tools' make: *** [all-recursive] Błąd 1 I know that problem is with libgnomedb-graph.h but it should be deliver with libgnomedb-3.0.0 (this one is compile without problems). What I should do? kernel: 2.6.20.11-vs2.2.0 libgnomedb: 3.0 libgdamm: 3.0 libgda: 3.0 -- View this message in context: http://www.nabble.com/libgnomedbmm-2.9.5-problem-with-compilation-tf3826530.html#a10832240 Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Problem with gtk drawing primitive
On Mon, May 28, 2007 at 08:21:01PM +0200, Jerome Blondel wrote: I'm making a widget from scratch using the tutorial's GtkDial as a base. For now I just want to draw something in my widget. The following error occurs (test_sw:4242): Gtk-CRITICAL **: gtk_paint_polygon: assertion `style-depth == gdk_drawable_get_depth (window)' failed This is the code in the WIDGET_expose callback: blankstyle = gtk_style_new(); blankstyle-bg[GTK_STATE_NORMAL] = sw-color; gtk_style_set_background(blankstyle, w-window, GTK_STATE_NORMAL); gtk_paint_polygon(blankstyle, w-window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, w, NULL, points, 8, TRUE); Please could anyone help me with this problem? I suspect blankstyle = gtk_style_attach(blankstyle, w-window); is missing. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Problem with gtk drawing primitive
David Nec(as (Yeti) : On Mon, May 28, 2007 at 08:21:01PM +0200, Jerome Blondel wrote: I'm making a widget from scratch using the tutorial's GtkDial as a base. For now I just want to draw something in my widget. The following error occurs (test_sw:4242): Gtk-CRITICAL **: gtk_paint_polygon: assertion `style-depth == gdk_drawable_get_depth (window)' failed This is the code in the WIDGET_expose callback: blankstyle = gtk_style_new(); blankstyle-bg[GTK_STATE_NORMAL] = sw-color; gtk_style_set_background(blankstyle, w-window, GTK_STATE_NORMAL); gtk_paint_polygon(blankstyle, w-window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, w, NULL, points, 8, TRUE); Please could anyone help me with this problem? I suspect blankstyle = gtk_style_attach(blankstyle, w-window); is missing. Thanks ! Jerome Blondel ___ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.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 add stuff to treeviews??
Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [Glade-users] How to add stuff to treeviews?? Date: Mon, 28 May 2007 22:09:36 +0800 Michael Ekstrand wrote: On Fri, 2007-05-25 at 11:47 +0300, Felipe Balbi wrote: After getting my treeview using glade_xml_get_widget() and inserting a column with gtk_tree_view_insert_column()... how can I add data to the treeview??? You don't add data to a tree view itself, you add it to the TreeModel which is backing the treeview. So you need to create a GtkTreeModel of some kind (usually either GtkListStore or GtkTreeStore), populate it, and assign it to the tree view (with gtk_tree_view_set_model()). See the following links for more details: * http://scentric.net/tutorial/ * http://developer.gnome.org/doc/API/2.0/gtk/TreeWidget.html - Michael ___ Glade-users maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/glade-users Hello, I too am trying to use a Treeview model view, etc. I have created a list store before and that works fine. Now I am creating a new program and want to create a Treeview with a parent iter and 6 set child iter (ie you create a new row and the row auto creates the 6 children underneath) But I am having trouble doing ANYTHING with the treeview. Cut/paste the example from the gtk 2.0 API simply fails to do anything. I am left with a blank screen. inserting g_print shows that the code is being called, but nothing is being displayed. Since the gtk_tree_view is created in glade, I am simply doing a lookup_widget on the treeview and adding columns to it (ie none exist) and then populating the data. My code, very stripped down (to remove possible errors) is: void on_harpmanager_show(GtkWidget *widget, gpointer user_data) { GtkTreeStore *tree_store; GtkTreeIter parent_iter, child_iter; GtkWidget *view; GtkCellRenderer *renderer; GtkTreeSelection *selection; GtkTreeViewColumn *col; // CREATE THE TREE_VIEW and hook the row selection event into it! view = lookup_widget(widget, treeview_base); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); gtk_tree_selection_set_select_function(selection, func_base_select, NULL, NULL); // CREATE COLUMN HEADERS if (gtk_tree_view_get_column(GTK_TREE_VIEW(view), 0) == NULL) { // -- Column 1 -- col = gtk_tree_view_column_new(); gtk_tree_view_column_set_title(col, CHARACTER NAME); gtk_tree_view_append_column(GTK_TREE_VIEW(view), col); renderer = gtk_cell_renderer_text_new(); gtk_tree_view_column_pack_start(col, renderer, TRUE); gtk_tree_view_column_add_attribute(col, renderer, text, 0); } } With this I should get a simple treeview with column headings, but I get nothing. Adding the following also produces a blank screen. tree_store = gtk_tree_store_new (1, G_TYPE_STRING); gtk_tree_store_append (tree_store, parent_iter, NULL); gtk_tree_store_set (tree_store, parent_iter, 0, Darkeen, -1); gtk_tree_store_append (tree_store, parent_iter, child_iter); gtk_tree_store_set (tree_store, child_iter, 0, Profession, -1); gtk_tree_store_append (tree_store, parent_iter, child_iter); gtk_tree_store_set (tree_store, child_iter, 0, Race, -1); gtk_tree_store_append (tree_store, parent_iter, child_iter); gtk_tree_store_set (tree_store, child_iter, 0, Talents, -1); gtk_tree_store_append (tree_store, parent_iter, child_iter); gtk_tree_store_set (tree_store, child_iter, 0, Skills, -1); gtk_tree_store_append (tree_store, parent_iter, child_iter); gtk_tree_store_set (tree_store, child_iter, 0, Equipment, -1); gtk_tree_view_set_model (GTK_TREE_VIEW(view), GTK_TREE_MODEL(tree_store)); g_object_unref (tree_store); gtk_widget_show_all(widget); HELP! -- --- Regards, Jason Brisbane ___ Glade-users maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/glade-users ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list