Re: How to search through all entries in a column in GtkList

2005-01-24 Thread Vinod Joseph
Hello Sorry...in case i was not clear I do the following in my code... for ( i = 0; i <= my_list_store->len ; i++ ) { g_print("\n User ID Values = %s \n", g_array_index (my_list_store, User, i).userid); } This code searches through all entries and prints...correctly However wh

How to search through all entries in a column in GtkList

2005-01-24 Thread Vinod Joseph
Dear All I have a GtkEntry I read the keyed value inside the GtkEntry. I compare this value with all the values of a particular column in my GtkList. How do i write this code Currently I am comparing entry_text code using memcmp with g_array_sized_new( Articles, User, i).column_one a

Re: GtkListStore - play with the list entries

2005-01-24 Thread Vinod Joseph
Thank you Bob This works much better than my code that took strlen(new_text) and did for (loop with strlen) *(my_text + 1) = '*'; and i print my_text into the GtkList. It was not the last character but weird behavior like boxes with 0s for some inputs. I tried others including strncat but they d

How to specify max char limit on GtkTextView

2005-01-24 Thread Gaurav Jain
Hi All, I wish to enforce a maximum character limit on a GtkTextView. For GtkEntry, there is an API called gtk_entry_set_max_length(), but I couldn't find one for GtkTextView. Is there a way to enforce this limit somehow? Thanks, -Gaurav ___ gtk-app-d

[X11] get information from window like xprop

2005-01-24 Thread Andreas Volz
Hi, I like to get information from a X-window like xprop does it in gtk2. Are there functions for this or should I get the X-window-widget and do some X programming? I need for example (xprop output): ... WM_CLASS(STRING) = "main_window", "Sylpheed" ... And I like to click on a window which prop

Re: Change distance between buttonborder and the containing widget

2005-01-24 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix Bueltmann <[EMAIL PROTECTED]> writes: > On Mon, 2005-01-24 at 16:47 +, Roger Leigh wrote: >> On Mon, Jan 24, 2005 at 04:49:04PM +0100, Felix Bueltmann wrote: >> >> > Is there a way to change the distance between the buttonborder and the >>

gobject property change-notify

2005-01-24 Thread Stefan Kost
hi hi, I am setting object-properties in one place of the app via g_object_set() Somewhere else I have connected a signal handler to "notity::propname". While these things usually work, in this particulary case my signal handler is not getting invoked. The g_object_set e.g. takes place in a differ

Re: Change distance between buttonborder and the containing widget

2005-01-24 Thread Felix Bueltmann
On Mon, 2005-01-24 at 16:47 +, Roger Leigh wrote: > On Mon, Jan 24, 2005 at 04:49:04PM +0100, Felix Bueltmann wrote: > > > Is there a way to change the distance between the buttonborder and the > > containing widget? I need a button with an image as containing widget, > > and the distance betw

Re: Change distance between buttonborder and the containing widget

2005-01-24 Thread Roger Leigh
On Mon, Jan 24, 2005 at 04:49:04PM +0100, Felix Bueltmann wrote: > Is there a way to change the distance between the buttonborder and the > containing widget? I need a button with an image as containing widget, > and the distance between this should be max 1 px. Since a GtkButton derives from Gt

Re: Re[2]: Fonts

2005-01-24 Thread John Cupitt
On Mon, 24 Jan 2005 17:06:49 +0100, Iago Rubio <[EMAIL PROTECTED]> wrote: > Functions may be simpler, but what about font descriptions ? > > "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" > > It's not too friendly, is it? > > "Helvetica Bold 12 pt" sounds much better. Yes, this is a good

Re: GtkListStore - play with the list entries

2005-01-24 Thread Bob Caryl
I am guessing that the last character of the password is not masked, right? I am assuming that "new_text" is always going to be a null terminated c-style string. If it is not, strlen is going to have a tough time. The code to replace password characters should probably read: gchar *my_text;

Re: Re[2]: Fonts

2005-01-24 Thread Iago Rubio
On Mon, 2005-01-24 at 12:19, Alexander S.Kresin wrote: > On 21.01.2005 15:20, John Cupitt <[EMAIL PROTECTED]> wrote: > > JC> On Fri, 21 Jan 2005 15:09:45 +0300, Alexander S.Kresin > JC> <[EMAIL PROTECTED]> wrote: > >> Is the pango font system really better than the old GdkFont ? > >> What are

Change distance between buttonborder and the containing widget

2005-01-24 Thread Felix Bueltmann
Hi! Is there a way to change the distance between the buttonborder and the containing widget? I need a button with an image as containing widget, and the distance between this should be max 1 px. Thanks in advance -- Felix Bueltmann <[EMAIL PROTECTED]> _

Pango fonts

2005-01-24 Thread Alexander S.Kresin
Hello All, sorry to disturb you with a simple basic questions, but ... Win32 API has a function GetTextMetric(), which returns the height, maximum char width for a given font in pixels. How can I get the same values for a given PangoFontDescription, or for a pango layout where this font is se

Re: Gtk-CRITICAL **: file gtkentry.c: line 3717 (gtk_entry_set_text): assertion `text != NULL' failed

2005-01-24 Thread Iago Rubio
On Mon, 2005-01-24 at 08:10, Sandy wrote: > Hi, > > I am trying to build an application which encrypts/ decrypts files or > directories as required. > I am using Fedora core 3 with kernel version 2.6.9-1.667. I am > developing the GUI using Glade 2.6.0. > > I am trying to select a file name using

Re[2]: Fonts

2005-01-24 Thread Alexander S.Kresin
On 21.01.2005 15:20, John Cupitt <[EMAIL PROTECTED]> wrote: JC> On Fri, 21 Jan 2005 15:09:45 +0300, Alexander S.Kresin JC> <[EMAIL PROTECTED]> wrote: >> Is the pango font system really better than the old GdkFont ? >> What are the possible problems if I'll use the GdkFont in my >> programs i