Who to replace deprecated functions

2007-08-07 Thread Joerg Anders
Hi all! The GTK documentation has a lot of warnings: ... deprecated and should not be used in newly-written code. In many cases I found the newly-written code. But there are 2 situations where I can't see a non-deprecated solution: 1.) How can I replace gtk_toolbar_append_widget()? In

memory leaks observed in gtk app.

2007-08-07 Thread Anurag Chaudhary
Hi, I am working on a gtk application which when used continuously exhibits memory leak. I have verified this by top output which shows continuous increase in memory used by it. After analysing the problem with valgrind, memprof and mpatrol, a couple of observations have been made: 1- program

Re: Font width in gtk 2.x

2007-08-07 Thread Yeti
On Tue, Aug 07, 2007 at 05:08:17PM +0200, [EMAIL PROTECTED] wrote: Iam porting my application from gtk 1.x to gtk 2.x what is th eqivalent api for gdk_string_width(widget-style-font,m) in gtk 1.x in gtk 2.x I want to dynamicly set the size for Entry Widgets the lenghts of the selected

Re: dynamic combo entry

2007-08-07 Thread Jim George
On 8/7/07, Dave Howorth [EMAIL PROTECTED] wrote: Users need to choose from a very long list of possibilities (approx half million). A neat interface that I saw for this (in Javascript IIRC) is to have a combo box entry. As the user types the beginning of the name, the combo box displays the

Re: dynamic combo entry

2007-08-07 Thread Dave Howorth
Jim George wrote: It may not be exactly what you want, but gtk_entry_set_completion might help. It looks interesting. I've found the page in the reference manual and it says lots of things that sound intriguing but I'm having trouble grasping exactly what a GtkEntryCompletion can do :( Are

Re: Who to replace deprecated functions

2007-08-07 Thread Yeti
On Fri, Aug 03, 2007 at 06:13:08PM +0200, Joerg Anders wrote: 2.) How can I replace gtk_menu_append()? In concrete case I want to add and remove some GtkMenuItems dynamically. After a long search I found that a combination of: gtk_action_group_add_action(...)

Re: dynamic combo entry

2007-08-07 Thread Jim George
On 8/7/07, Dave Howorth [EMAIL PROTECTED] wrote: Jim George wrote: It may not be exactly what you want, but gtk_entry_set_completion might help. It looks interesting. I've found the page in the reference manual and it says lots of things that sound intriguing but I'm having trouble

Multiple Herencies or how to change the base GObject

2007-08-07 Thread Daniel Espinosa
I have the following hierarchy: Base Object | |- - - - Object The actual code use a Base object witch implements a type of data access method (XML file and others), but I want to add the use of a diferent one: the Gnome Database Access (GDA, www.gnome-db.org). I want to keep both methods and

PangoLayout PangoMatrix

2007-08-07 Thread Leonel Freire
#include gtk/gtk.h static gboolean cb (GtkWidget *widget, GdkEventExpose *event, gpointer data) { gtk_paint_layout( widget-style, widget-window, GTK_WIDGET_STATE(widget), FALSE, event-area, widget, drawingarea, 0, 0,

Re: PangoLayout PangoMatrix

2007-08-07 Thread Behdad Esfahbod
On Tue, 2007-08-07 at 22:36 -0300, Leonel Freire wrote: Well... What I'm trying to do is a double width text, but with the normal height... what's wrong with this code? It shows just a bad formated text, nothing that I was expecting... Helps if you attach a screenshot. What I'm seeing here

color of vscrollbar

2007-08-07 Thread Prasanna Kumar K
Hi, I wanted to add some colors to my current vscrollbar application. the arrow labels should be in white color. the bar should be in blue color. rest everything the boxes and the vertical box in which the bar slides should be in black color. the code I have written just makes the color of