Re: Linking the buttons to gtk app

2010-08-27 Thread dhk
or something like that? dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Widget name is 0x0 after GtkWidget key-press-event

2010-08-14 Thread dhk
On 08/13/2010 04:50 PM, John Stebbins wrote: On 08/13/2010 06:22 AM, Tadej Borovšak wrote: Hi. Your problems are caused by the fact that GtkBuilder since GTK+-2.20 doesn't set widget's name property to id field anymore. API docs[1] warn about this change (see the first Note section in

Widget name is 0x0 after GtkWidget key-press-event

2010-08-13 Thread dhk
', time = 4862537, state = 16, keyval = 65289, length = 0, string = 0x9960b0 , hardware_keycode = 23, group = 0 '\000', is_modifier = 0} (gdb) Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Broken Links in GTK Documentation

2010-06-29 Thread dhk
There are a lot of broken links in the GTK documentation. For example when clicking on GDK_FOCUS_CHANGE_MASK and other hyperlinks in http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-focus-out-event the result is Not Found. It looks like the links in the stable documentation

Re: Setting a Tree View Cell to insensitive and uneditable

2010-04-22 Thread dhk
On 04/22/2010 02:55 AM, Freddie Unpenstein wrote: From: dhk, Date: 20/04/2010 09:46: On 04/19/2010 01:34 PM, Nicolas Soubeiran wrote: When creating your model set a specific column with a boolean property. gtk_list_store_new(N_COLUMN, G_TYPE_STRING, G_TYPE_BOOLEAN); Then in the treeview

Re: Setting a Tree View Cell to insensitive and uneditable

2010-04-19 Thread dhk
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

Setting a Tree View Cell to insensitive and uneditable

2010-04-18 Thread dhk
in the new row can not be edited. 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? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Getting a Widget Choice

2010-02-20 Thread dhk
? GtkWidget *nb=NULL; /* A notebook widget */ /* Call 1 */ nb=GTK_WIDGET(gtk_builder_get_object(gtk_builder, notebook_name)); /* Call 2 */ nb=gtk_widget_get_ancestor(widget, GTK_TYPE_NOTEBOOK); Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: Getting a Widget Choice

2010-02-20 Thread dhk
interface in the future. Cheers, -Tristan On Sat, Feb 20, 2010 at 9:04 AM, dhk dhk...@optonline.net wrote: When a widget can be gotten by using GTK builder functions or GTK Widget functions, does it make a difference, or is one way better than the other, for finding the widget

GtkActionEntry

2010-02-03 Thread dhk
the tab, shifttab, controltab, . . . to work like the others? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reuse of a gtk_tree_model_get() Pointer

2010-01-23 Thread dhk
I free rxi.sdesc and allocate space for the new string and then do a string copy? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkNotebook switch-page Signal

2010-01-09 Thread dhk
David Nečas wrote: On Fri, Jan 08, 2010 at 05:59:27PM -0500, dhk wrote: When changing from one tab to another in a GtkNotebook I often need to know the tab that was selected. It seems the switch-page signal just tells the current page and there are functions that tell the current page

Re: GtkNotebook switch-page Signal

2010-01-09 Thread dhk
dhk wrote: David Nečas wrote: On Fri, Jan 08, 2010 at 05:59:27PM -0500, dhk wrote: When changing from one tab to another in a GtkNotebook I often need to know the tab that was selected. It seems the switch-page signal just tells the current page and there are functions that tell the current

GtkNotebook switch-page Signal

2010-01-08 Thread dhk
the destination page or the tab that received the signal. Does anyone know how to determine this? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GTK Action Handler

2009-12-31 Thread dhk
, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK Action Handler

2009-12-31 Thread dhk
Tadej Borovšak wrote: Hello. Callback prototype for activate signal is: void callback( GtkAction *action, gpointer data ); When widget that proxies specific action is activated, it calls gtk_action_activate() function which emits activate signal. Tadej I think I have one more

Re: GTK Action Handler

2009-12-31 Thread dhk
Michael Cronenworth wrote: dhk wrote: How can I reuse these callbacks? Use user_function( GtkWidget *widget, gpointer data ) instead of explicitly setting a class. Then cast widget as whatever you need, eg.: GTK_BUTTON( widget ) inside of your callback

Window Managers Key Combinations and Accelerators

2009-12-09 Thread dhk
of the keys to their string value? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Invalid GtkTreeIter

2009-11-04 Thread dhk
Claudio Saavedra wrote: El mar, 03-11-2009 a las 16:53 -0500, dhk escribió: I have a program that declares a number of GtkTreeIter's. Recently the prepending to the parent iter broke. I found out that, in some cases, the stamp to the iter's are negative just after the iter is declared

Invalid GtkTreeIter

2009-11-03 Thread dhk
} c.stamp={-524655784} d.stamp={-524655800} $ Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Program Crashes when Removing a Page

2009-11-01 Thread dhk
David Nečas wrote: On Fri, Oct 30, 2009 at 06:09:16AM -0400, dhk wrote: I have a notebook that crashes the program when gtk_notebook_remove_page(GTK_NOTEBOOK(nb), page_num) is called. Each page of the notebook has a lot of stuff on it and the crash always happens on the same page

Program Crashes when Removing a Page

2009-10-30 Thread dhk
(nb), page_num); (gdb) Program received signal SIGSEGV, Segmentation fault. 0x7fffd8340790 in ?? () How can I find out what's causing the crash? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Treeview Row Count

2009-09-24 Thread dhk
Is there a function to give the number of rows in a treeview? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Treeview Row Count

2009-09-24 Thread dhk
Kristian Rietveld wrote: Also note that for *lists* (so no parent nodes, no children) a call like gtk_tree_model_iter_n_children (model, NULL) will suffice. -kris. On Thu, Sep 24, 2009 at 1:32 PM, Tadej Borovšak tadeb...@gmail.com wrote: Hello. Is there a function to give the number

Setting data in a Treeview cell

2009-09-18 Thread dhk
basically two clicks need to be made when I am done editing a cell one inside the treeview and then the button or menu item I really want. This isn't user friendly since the users will not remember to do this. How can I get the data set in one shot? Thanks, dhk

What is Gtk builder?

2009-06-22 Thread dhk
I hate to ask what everyone seems to know, but what is gtk builder? Is it part of Glade 3.4.5? I don't see any gtk builder packages or libraries in the Gentoo portage tree. Also does this mean all my Glade programs are obsolete? Thanks ___

Re: Accelerator

2009-06-07 Thread dhk
Stefan Kost wrote: dhk schrieb: Are accelerators only for menu items? I've seen a lot of examples with accelerators and the all seem to connect to a menu item. I've been having a difficult time getting accelerators to work even with the examples. I think I'm missing something. One thing I

Accelerator

2009-05-25 Thread dhk
an accelerator execute a function or a callback. Maybe if I could just print Hello World to the terminal when pressing Alt-F4 would help prove the concept. Can someone help? Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: Treeview CRITICAL Error

2009-04-30 Thread dhk
Carlos Pereira wrote: dhk wrote: only seems to compile when the -O (Optimization) option is present. However the options is set as -O0 (that's Dash-Oh-Zero) which should turn optimization off. I'd like to be able to compile the program without optimization, but so far this has just been

Treeview CRITICAL Error

2009-04-25 Thread dhk
I have a program that I'm trying to clean up. There is a lot going on so please bear with me and I try to keep it brief. First - the build environment uses autoconf. The only reason I mention this is because in the Makefile.am when the -g options is added to the CFLAGS is only seems to

gdb error

2009-03-29 Thread dhk
When using gdb I get the following error as soon as I hit gtk_init() in may main. (gdb) 60gtk_set_locale (); (gdb) 61gtk_init(argc, argv); (gdb) [Thread debugging using libthread_db enabled] Error while reading shared library symbols: Cannot find new threads: generic error

Treeview Signals

2009-03-16 Thread dhk
All, I have a treeview with Text and Combo Renderers. The key-press event is connected to the treeview. Why does the key-press callback only get called when the focus cell is a text renderer? I would like it to be called when the focus cell is a combo render also. Thanks, dave

Re: 2. Re: General tips about GTK+ programming

2009-03-05 Thread dhk
Ali Abdallah wrote: -- Message: 1 Date: Tue, 3 Mar 2009 09:39:51 -0300 From: Tomaz Canabrava tum...@gmail.com Subject: Re: General tips about GTK+ programming To: Vlad Volodin vest...@gmail.com Cc:

Scrolling multiple treeviews

2009-02-28 Thread dhk
Is it possible to have a single vertical scrollbar scroll multiple treeviews? To avoid using a horizontal scroll on a large set of data I broke the data up into multiple treeviews. However, I would like to have one scroll control all the views at the same time instead of each treeview having

Inherited Function Key Behavior

2009-02-07 Thread dhk
My GTK program seems to have inherited some function keys from somewhere. When I press F10 the menu in the menu bar opens and when I press F10 again it goes away. The same behavior happens in the gnome-terminal. When I press F10 my key press event isn't even called, but F9 and others work.

Re: Inherited Function Key Behavior

2009-02-07 Thread dhk
On Sat, 2009-02-07 at 16:05 -0500, dhk wrote: My GTK program seems to have inherited some function keys from somewhere. When I press F10 the menu in the menu bar opens and when I press F10 again it goes away. The same behavior happens in the gnome-terminal. When I press F10 my key press event

MenuItem activate signal

2009-02-06 Thread dhk
I have a callback that is called when a MenuItem is selected, but in the callback the paramenter is which is suppose to be the MenuItem is NULL. The callback signature is void user_function (GtkMenuItem *menuitem, gpointer user_data). What I want to do is set menuitem to be insensitive when

Re: MenuItem activate signal

2009-02-06 Thread dhk
Carlos Pereira wrote: I am fairly experienced with sensitive/insensitive states in Menuitems in old Option Menus and new Combo Boxes, but I am not sure in which context your Menuitem appears... Could you explain what is the parent of your MenuItems? perhaps with a very small bit of code

Keyed Data Lists

2009-02-03 Thread dhk
Does anyone have an example of how to use Keyed Data Lists? Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Making a Preference Window

2009-01-31 Thread dhk
Does anyone know how to save a modification to GTK program as a Glade Project? The reason I want to do this is so the next time the program is run it starts in a certain state. For example, one of the things I'd like to do is add a preference window to my GTK program. I can design the

Printing vs Logging

2009-01-16 Thread dhk
Can someone explain the difference between when to use 1) Message Logging, 2) the Message Output and Debugging Functions, and 3) the printing in the String Utility Functions? It seems that for logging purposes either of the three can be used. Is there any advantage of one over the other?

How to hide a GtkTreeSelection

2009-01-11 Thread dhk
How do you hide a GtkTreeSelection once you have the row selected? Instead of deleting the row I would like to make it invisible. Thanks, dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app

Re: Glade signal connect data and full

2008-11-11 Thread dhk
Mike Massonnet wrote: Hi, and really quickly, Le Mon, 10 Nov 2008 08:38:53 -0500, dhk [EMAIL PROTECTED] a écrit : All, Could some explain how to use glade_xml_signal_connect_data() and glade_xml_signal_connect_full()? Some good examples would be helpful also. http://www.google.com

Glade signal connect data and full

2008-11-10 Thread dhk
All, Could some explain how to use glade_xml_signal_connect_data() and glade_xml_signal_connect_full()? Some good examples would be helpful also. I don't think I know the difference between the signal handler name and the signal handler function that is used as parameters. In my GTK program I

Passing an iter

2008-10-20 Thread dhk
Is it safe to pass an iter as a parameter to a function? Thanks, Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtkmm and autoconf

2008-10-03 Thread dhk
Ruben Safir wrote: Hello I'm really a novice at autoconf and automake and trying to learn some gtkmm but I'm running into a problem that I just don't have the familiarity to solve and I'd like to request some help I've done a google search for a solution and came up blank so I hope

Need to get the tree view from the model

2008-09-17 Thread dhk
What is the most direct way to get the tree view from the tree model? I don't see a function for doing this. Also, when I went to the source, GtkTreeModel is defined a follows: typedef struct _GtkTreeModel GtkTreeModel; /* Dummy typedef */ Why is it called a Dummy typedef and why can't I

Re: Need to get the tree view from the model

2008-09-17 Thread dhk
Emmanuele Bassi wrote: On Wed, 2008-09-17 at 13:48 +, dhk wrote: What is the most direct way to get the tree view from the tree model? I don't see a function for doing this. it wouldn't make any sense. a model can be used as the data source for many TreeView widgets. Also, when I went

Getting GtkCellRenderer's

2008-09-09 Thread dhk
How do you get a GtkCellRenderer from a treeview or a GtkTreeViewColumn? Thanks, Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_signal_emit()

2008-09-01 Thread dhk
dhk wrote: Kristian Rietveld wrote: On Sun, Aug 31, 2008 at 2:08 PM, dhk [EMAIL PROTECTED] wrote: I have two callback functions. The first for when a cell in a treeview gets edited and the second for when the tab key is pressed. The first works fine. In the second, I want to emit

Re: g_signal_emit()

2008-08-31 Thread dhk
dhk wrote: I have two callback functions. The first for when a cell in a treeview gets edited and the second for when the tab key is pressed. The first works fine. In the second, I want to emit the edited signal so it acts as if the first event happened. However, the g_signal_emit

Re: g_signal_emit()

2008-08-31 Thread dhk
Kristian Rietveld wrote: On Sun, Aug 31, 2008 at 2:08 PM, dhk [EMAIL PROTECTED] wrote: I have two callback functions. The first for when a cell in a treeview gets edited and the second for when the tab key is pressed. The first works fine. In the second, I want to emit the edited signal so

g_signal_emit()

2008-08-30 Thread dhk
I have two callback functions. The first for when a cell in a treeview gets edited and the second for when the tab key is pressed. The first works fine. In the second, I want to emit the edited signal so it acts as if the first event happened. However, the g_signal_emit() in the

Re: Clone a notebook tab?

2008-08-28 Thread dhk
Roland Roberts wrote: Is there a way to clone a notebook tab? I'm writing an application where I've laid out the tab using glade. The tab is for controlling a camera, and I may have multiple cameras. Each time I connect one, I'd like to clone a generic tab then reassign data associated with

Re: key-press-event event clears cell in treeview

2008-08-28 Thread dhk
dhk wrote: I have a key-press-event connected to my treeview so a Tab can be used to navigate through the cells. It work well except that when the Tab is pressed it clear all the data in the cell. If I use the mouse to move to another cell the data remains. My callback doesn't touch

key-press-event event clears cell in treeview

2008-08-26 Thread dhk
I have a key-press-event connected to my treeview so a Tab can be used to navigate through the cells. It work well except that when the Tab is pressed it clear all the data in the cell. If I use the mouse to move to another cell the data remains. My callback doesn't touch the data. All it

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread dhk
. Im not sure I understood properly what you wrote, but if I did, I would expect you to be using a list of structs or objects representing the data and widgets in that tab. Cheers, -Tristan On Mon, Aug 11, 2008 at 7:15 PM, dhk [EMAIL PROTECTED] wrote: dhk wrote: I'm adding tabs

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread dhk
Olivier Guilyardi wrote: Hi, dhk wrote: How can a unique widget be created by using the same widget from a GladeXML object multiple times? You can use different GladeXML objects, constructed out of the same glade file. Example: GladeXML *xml = glade_xml_new(test.glade, NULL, NULL

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread dhk
, and for the same reasons outlined above its a good idea to unref your GladeXML objects as soon as your UI is built, so you dont have access to the hash map provided by the glade xml. dhk: Your theory about keeping track by pages is indeed sane, you can use a simple recursive algorythm to find a widget

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-11 Thread dhk
dhk wrote: I'm adding tabs to a notebook by getting the tab (a vbox) out of a GladeXML object. The tab widget returned from glade_xml_build_widget() can be added to the notebook and everything works fine. The problem is when more tabs are added. It doesn't seem like the widget id's on each

Re: Finding a widget in a Glade interface

2008-08-10 Thread dhk
Chris Vine wrote: On Sat, 09 Aug 2008 18:18:40 + dhk [EMAIL PROTECTED] wrote: Referencing the widgets is what I'm trying to do. So, are you saying, the function is ok without any freeing? Also, am I decrementing the reference count? I don't see it. You will need to free the list: your

How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-10 Thread dhk
I'm adding tabs to a notebook by getting the tab (a vbox) out of a GladeXML object. The tab widget returned from glade_xml_build_widget() can be added to the notebook and everything works fine. The problem is when more tabs are added. It doesn't seem like the widget id's on each tab are

Re: Finding a widget in a Glade interface

2008-08-09 Thread dhk
dhk wrote: Nicola Fontana wrote: On Sun, 03 Aug 2008 19:10:37 + dhk [EMAIL PROTECTED] wrote: Is gtk_container_get_children() suppose to return a list of all children including children of children down to the last leaf or just the immediate children? I only seem to get the immediate

Re: Finding a widget in a Glade interface

2008-08-09 Thread dhk
Chris Vine wrote: On Sat, 09 Aug 2008 10:06:57 + dhk [EMAIL PROTECTED] wrote: [snip] Does anyone have any ideas on how to free the memory correctly? g_list_foreach() operates on the data held by the list element, not on the element itself, so your freeGList() function is wrong, even

Re: Finding a widget in a Glade interface

2008-08-07 Thread dhk
Nicola Fontana wrote: On Sun, 03 Aug 2008 19:10:37 + dhk [EMAIL PROTECTED] wrote: Is gtk_container_get_children() suppose to return a list of all children including children of children down to the last leaf or just the immediate children? I only seem to get the immediate children

Re: Finding a widget in a Glade interface

2008-08-03 Thread dhk
Nicola Fontana wrote: On Thu, 31 Jul 2008 11:07:34 + dhk [EMAIL PROTECTED] wrote: Jim George wrote: I wasn't a fan of keeping the GladeXml object around due to the resources it used. Even though it's not as efficient as storing pointer, I wish I could just traverse up and down

Re: Finding a widget in a Glade interface

2008-07-31 Thread dhk
Jim George wrote: I should have mentioned that by time I want to call glade_xml_get_widget() the GladeXML *xml created by xml = glade_xml_new(filename.glade, NULL, NULL); is out of scope. If I call open the file again to get the widget it has no affect on the running window. I need to get

Finding a widget in a Glade interface

2008-07-30 Thread dhk
How do you look up a widget when the interface is created with glade_xml_new()? There use to be a lookup_widget() function that worked if you called one of the two glade macros: GLADE_HOOKUP_OBJECT() or GLADE_HOOKUP_OBJECT_NO_REF(). Now unless you build the interface yourself and hook up

Re: Finding a widget in a Glade interface

2008-07-30 Thread dhk
Tristan Van Berkom wrote: On Wed, Jul 30, 2008 at 3:40 PM, Tristan Van Berkom [EMAIL PROTECTED] wrote: for future reference, this could easily have been pulled out of the docs/header files: glade_xml_get_widget() type libglade and feel lucky its right there. oops, I obviously meant in google

Callback Parameters are Switched

2008-07-21 Thread dhk
I'm using glade for a front end which has a button that when clicked passes a notebook as the user_data to the callback. I'm using the gdb debugger to look at the two parameters in the callback and they are switched. The first parameter, the button, is the notebook object and the second

Re: Callback Parameters are Switched

2008-07-21 Thread dhk
Tomas Carnecky wrote: dhk wrote: I'm using glade for a front end which has a button that when clicked passes a notebook as the user_data to the callback. I'm using the gdb debugger to look at the two parameters in the callback and they are switched. The first parameter, the button

Re: tabbing through a treeview

2008-07-18 Thread dhk
Rui Tiago Cação Matos wrote: The attached example changes the selected line with just Tab. Rui One more question about this. What is the purpose of checking the event-state? My event-state is always 16, not zero, which is one of the unused values. Thanks, Dave

Getting a Column Number

2008-07-15 Thread dhk
The following will get me the Column from a treeview, but from focus_column I don't know if I'm in the first, second, third . . . or last column. GtkTreePath *tp=NULL; GtkTreeViewColumn *focus_column=NULL; gtk_tree_view_get_cursor(GTK_TREE_VIEW(treeview), tp, focus_column); How do you get the

Getting a Column Number

2008-07-15 Thread dhk
Anyone? The following will get me the Column from a treeview, but from focus_column I don't know if I'm in the first, second, third . . . or last column. GtkTreePath *tp=NULL; GtkTreeViewColumn *focus_column=NULL; gtk_tree_view_get_cursor(GTK_TREE_VIEW(treeview), tp, focus_column); How do

Re: tabbing through a treeview

2008-07-14 Thread dhk
Rui Tiago Cação Matos wrote: The attached example changes the selected line with just Tab. Rui It works great. I just added a few g_print()'s to see what's happening. Thanks, dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: tabbing through a treeview

2008-07-13 Thread dhk
Rui Tiago Cação Matos wrote: On 10/07/2008, dhk [EMAIL PROTECTED] wrote: Does anyone know how to move/loop through the fields in a treeview by just pressing the Tab key? I would like to make the mouse optional and not a requirement. I believe you can connect to the treeview's key-press-event

tabbing through a treeview

2008-07-09 Thread dhk
Does anyone know how to move/loop through the fields in a treeview by just pressing the Tab key? I would like to make the mouse optional and not a requirement. Thanks in advance, Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Windows verses Dialogs

2008-06-15 Thread dhk
When should a dialog be used instead of a window? Can't a window always be used? Do you give anything up when using a dialog? What's the difference? Thanks, Dave ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Windows over Windows

2008-06-15 Thread dhk
How can a modal window or dialog from a secondary event always and completely cover the main window? The main window should look like it was replaced until the second window or dialog is closed. Thanks, Dave ___ gtk-app-devel-list mailing list

Re: Windows over Windows

2008-06-15 Thread dhk
Gregory Hosler wrote: dhk wrote: | How can a modal window or dialog from a secondary event always and | completely cover the main window? The main window should look like it | was replaced until the second window or dialog is closed. Depending upon the sizes of the two windows... The modal

calendar in a treeview

2008-06-05 Thread dhk
How can I update a treeview cell with a date selected from a calendar? The cell is a GtkCellRendererText and pops up a calendar with the editing-started signal when it gets focus. Thanks, Dave ___ gtk-app-devel-list mailing list

Returning a Calendar date string to a treeview cell

2008-06-04 Thread dhk
I have a treeview with a text render for a date. I wanted to be able to pop-up a calendar and select a date and have it get set in the cell of the treeview. I'm using the editing-started signal from GtkCellRenderer. My callback function is below. A couple of things are not clear. First, on

Returning a Calendar date string to a treeview cell

2008-06-03 Thread dhk
I have a treeview with a text render for a date. I wanted to be able to pop-up a calendar and select a date and have it get set in the cell of the treeview. I'm using the editing-started signal from GtkCellRenderer. My callback function is below. A couple of things are not clear. First, on

Representing XML in Tree Stores

2008-05-04 Thread dhk
What is the best way to represent complex xml in a tree store? It seems like it should be easy, but when looping the models with gtk_tree_model_foreach() some problems arise: especially when there are multiple views on different notebook tabs. The approach I am using is one Tree Store for

treeview combo box - multi select

2007-11-13 Thread dhk
When using a combo box in a treeview, how can it be configured so the user can select one or more items in the glist? Thanks, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

multicolumn combo with multiple options selectable

2007-11-06 Thread dhk
in advance, --dhk function_to_build_the_multicolumn_combo() { . . . enum {COL_COLOR, COL_USE, COL_CNT}; typedef struct Color {gchar *color; gboolean use;} Color; static Color colors[]={ {Red, FALSE}, {Blue, TRUE}, {Green, TRUE}, {Brown, FALSE}, {Black, FALSE}, {White

Can a button go in a treeview?

2007-10-22 Thread dhk
Is there a way to put a button in a treeview or atleast put a label next to a toggle in a treeview? I want to be able to change the label on the button or toggle depending on the status of the row and then have it operate accordingly. Thanks, --dhk

GtkNotebookPage

2007-09-30 Thread dhk
to like pointer-to-pointer (GtkWidget **tv) data. Also, what can you do with the GtkNotebookPage object? I don't see why this is passed in since there doesn't seem to be a way to use it. Thanks in advance, --dhk ___ gtk-app-devel-list mailing list gtk

Cell Renderer Combo in a Treeview

2007-09-13 Thread dhk
in the combo list not the tree. Does any one see the error? Thanks in advance, --dhk /* Compile Command: * gcc -Wall -g3 `pkg-config --cflags --libs gtk+-2.0` -o comboTst comboTst.c */ #include stdio.h #include stdlib.h #include string.h #include gtk/gtk.h #include gdk/gdkkeysyms.h enum

Re: Cell Renderer Combo Callback

2007-09-12 Thread dhk
Caliste wrote: 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

Cell Renderer Combo Callback

2007-09-11 Thread dhk
followed by the callback. Does any one see the error? Thanks, --dhk /* --- ItemType Treeview Column --- */ renderer = gtk_cell_renderer_combo_new(); /* Create the combo box */ ls_combo=gtk_list_store_new(1, G_TYPE_STRING); for(ii=0; ii9; ii++) { gtk_list_store_append (ls_combo

Toggle and the Inconsistent Property

2007-09-02 Thread dhk
state. Does anyone know how to do this? Thanks in advance, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Check Boxes Don't Work Independently

2007-08-30 Thread dhk
see what I mean. Thanks in advance, --dhk ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Check Boxes Don't Work Independently

2007-08-30 Thread dhk
? If you run the program you'll see what I mean. Thanks in advance, --dhk == P R O G R A M == /* Compile Command: * gcc -Wall -g3 `pkg-config --cflags --libs gtk+-2.0` -o checkBox checkBox.c */ #include stdio.h #include stdlib.h #include string.h

gtk_cell_renderer_toggle_new()

2007-08-27 Thread dhk
of Disable. Similarly, when one of the toggles get clicked, it seems to work until the mouse moves accross the treeview. Then all the toggles change to the last value of the last toggle clicked. Does anyone know why this happens and how to fix it? Thanks in advance, --dhk

gtk_tree_store_set() repeats value

2007-08-16 Thread dhk
I'm getting my treeview objects out of a glade xml. Everything works fine until I call gtk_tree_store_set(). The application runs and there arn't any errors. However, the values don't get set, unless gtk_tree_store_set() is called to set the second item in the treestore: index 1. Then all