Re: Location entry in GtkFileChooser

2008-04-15 Thread Carlos Pereira
Martin (OPENGeoMap) wrote: > >> Hullo, >> >> In a GTkFilechooser, how can I acess the information >> on the Location entry? I only find functions to get >> the full filename and uri but not the actual short >> filename... >> >> >> > I don´t understand well?? > > are you talking about filters??? >

Re: Location entry in GtkFileChooser

2008-04-15 Thread Carlos Pereira
Luis Menina wrote: > Hi Carlos. > > Well, I'm not familiar with GtkFileChooser, but I think you should > retrieve the full filename, and then use g_path_get_basename to get > the short filename. > Thanks, that is a good suggestion, unfortunately it fails in my case. I really need to have access

Re: Location entry in GtkFileChooser

2008-04-15 Thread Damien Caliste
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

function parameters not const

2008-04-15 Thread Gabriele Greco
There is a reason for functions like: gtk_tree_store_iter_depth, gtk_tree_store_iter_is_valid, gtk_list_store_iter_is_valid [large part of all the iterator related api, mostly for GtkTreeIter type] does not use a "const GtkTreeIter *" but a simple GtkTreeIter *? In C programs is almost the

Re: How to draw a primitive with one color and fill it with, another? (Sergey Parhomenko)

2008-04-15 Thread Thomas Stover
I would suggest you look at doing your drawing with cairo if possible. Once I discovered that, I gave up on calling all those gdk functions. Read the documents on their site at, http://www.cairographics.org . It looks like most gtk drawing is going this way. I'm also fuzzy on what the role of t

Re: printing gtktextview and text layout

2008-04-15 Thread Behdad Esfahbod
On Sat, 2008-04-12 at 11:08 +0200, Philippe Rouquier wrote: > > Could someone help me with that please? Just reorder your code to use pango_cairo_show_layout() for both display and print, then make sure you set font options on your PangoContext attached to the layout using pango_cairo_context_set

Adding StatusBar Icon

2008-04-15 Thread Aravind Sasidharan
Hi, What is the best way to add icons on the status bar? Currently, I am doing this by first removing the label from the statubar->frame and then replacing it with a Hbox having the image and that label. It is there a better way? Thanks, Aravind ___ g

ComboBox displaying data from a TreeStore

2008-04-15 Thread Tiberius Duluman
Hello I have one question about a ComboBox displaying data from a TreeStore. How can I make it to display the entire path? For example, when a child is selected, I want it to display something like "/item n/subitem c/subitem xx" In the application that I'm working to, display only child name, the

signal for detecting gtk app de-focus

2008-04-15 Thread Steve Splonskowski
Hello, I am attempting to find a way in my gtk app to get control (via signal or other means) when my application looses focus - that is when another application comes to the front, but my app is still running. I need to cleanup somethings at that point in time, but have not been able to d

text selection color accessor

2008-04-15 Thread Steve Splonskowski
Hello, I have a need to get the current (as per the selected UI theme) text selection color. I will be using this to highlight some other custom drawn elements in the UI of my gtk app. I understand that I can get this from the style information of a text widget (GtkEntry, etc), but it seems