Re: Changing fontsize of a label

2005-11-09 Thread Olexiy Avramchenko
Giuliano Montecarlo wrote: Hi, how can I change the fontsize of a label? And how can I make it bold? You can do it in several ways, one of the easiest is to use special markup language: http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html There's a function you have to use to ap

Changing fontsize of a label

2005-11-09 Thread Giuliano Montecarlo
Hi, how can I change the fontsize of a label? And how can I make it bold? MfG GAM ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Signal for a button-2 paste event in a TextView

2005-11-09 Thread Douglas Vechinski
I have a GtkTextView with an associated GtkTextBuffer. I want to act on the condition when text is pasted into the textview or textbuffer when the middle mouse button is pressed. That is, suppose I have some text selected in another application (like a gnome-terminal, evolution, etc.) or when I

Re: Warning with GTK 2.6. 8 " Could not find the icon 'gnome-fs-home' "

2005-11-09 Thread Gowri Kandasamy
Thanks for the info. I had installed GTK & the theme in /opt/gtk . But GTK was looking for the theme in /usr/local/share. Setting XDG_DATA_DIRS to the /opt/gtk/share directory solved the problem. On 11/8/05, Allin Cottrell <[EMAIL PROTECTED]> wrote: > > On Tue, 8 Nov 2005, Gowri Kandasamy wrote:

Re: GtkStatusIcon

2005-11-09 Thread Matthias Clasen
On Wed, 2005-11-09 at 19:08 +0100, Giuliano Montecarlo wrote: > Hi, > I'm about to write an App using GTK+. > I'm trying to get a Status Icon in Yellow. > > --snip-- > GdkPixbuf* YI = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 24, 24); > GdkColor color; > guint32 pixel; > if (gdk_color_

GtkStatusIcon

2005-11-09 Thread Giuliano Montecarlo
Hi, I'm about to write an App using GTK+. I'm trying to get a Status Icon in Yellow. --snip-- GdkPixbuf* YI = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 24, 24); GdkColor color; guint32 pixel; if (gdk_color_parse ("Yellow", &color)) pixel = (color.red >> 8) << 24 | (co

disabling notebook shortcuts

2005-11-09 Thread Paul Pogonyshev
Hi, Is there a clean way to disable GtkNotebook keyboard shortcuts? For instance, if I use a notebook widget (with tabs hidden, obviously) for a wizard dialog, I don't want the user to break the thing down by pressing Ctrl-PgDown and force a tab switch without the program's consent. Paul ___

Re: Problem sending data to gtk_button on "clicked" event

2005-11-09 Thread Tristan Van Berkom
Evan Behar wrote: I've been getting seg-faults when I try to work with data in my button "clicked" callback functions, so as a test, I compiled and ran the following program: Be carefull how you prototype your callbacks, for example; the GtkButtonClass's closure for the "clicked" signal will ex

Re: Problem sending data to gtk_button on "clicked" event

2005-11-09 Thread Olivier Sessink
Evan Behar wrote: > I've been getting seg-faults when I try to work with data in my button > "clicked" callback functions, so as a test, I compiled and ran the > following program: > > #include > > gchar m1[] = "button 1"; > gchar m2[] = "button 2"; > > static void callback(GtkWidget* widget, G

Re: Problem sending data to gtk_button on "clicked" event

2005-11-09 Thread Alan M. Evans
On Wed, 2005-11-09 at 08:39, Evan Behar wrote: > I've been getting seg-faults when I try to work with data in my button > "clicked" callback functions, so as a test, I compiled and ran the > following program: > > #include > > gchar m1[] = "button 1"; > gchar m2[] = "button 2"; > > static void

GTK + Xine

2005-11-09 Thread christophe
Hi, What kind of widget sould i include in my GTK Glade designed application in order to include a libxine based video viewer window ? Are there some basic examples or docs about that ? thanks for help, Chris ___ gtk-app-devel-list mailing list gtk-app

Problem sending data to gtk_button on "clicked" event

2005-11-09 Thread Evan Behar
I've been getting seg-faults when I try to work with data in my button "clicked" callback functions, so as a test, I compiled and ran the following program: #include gchar m1[] = "button 1"; gchar m2[] = "button 2"; static void callback(GtkWidget* widget, GdkEvent *event, gpointer data) { g_p

Re: Warning with GTK 2.6. 8 " Could not find the icon 'gnome-fs-home' "

2005-11-09 Thread David Necas (Yeti)
On Wed, Nov 09, 2005 at 08:28:15AM -0500, Matthias Clasen wrote: > > It is easy to use hicolor without using GNOME or KDE. IMHO the question is why it has to print such a warning at all, not what people can or cannot use hicolor with. Yeti -- That's enough.

Re: Warning with GTK 2.6. 8 " Could not find the icon 'gnome-fs-home' "

2005-11-09 Thread Matthias Clasen
On Wed, 2005-11-09 at 07:39 -0800, Colossus wrote: > Allin Cottrell wrote: > > > Yes, I have seen exactly this problem. Suprisingly enough, I solved it > > by doing exactly what was suggested, namely installing the hicolor icon > > them from the URL given. > > Suprisingly enough why don't remo

Gtk terminal widget

2005-11-09 Thread Attilio Fiandrotti
Hi all i need to deveop a Gtk app that shows up a shell terminal. I know two GtkWidgets do exists: ZVT http://developer.gnome.org/doc/API/zvtterm/zvtterm.html VTE http://developer.gnome.org/doc/API/2.0/vte/index.html The app will run over DirectFrameBuffer and not X and has to be as small as p

Re: optimal way to use Memory Chunks

2005-11-09 Thread Stefan Kost
Gus Koppel wrote: Too much ardour for that might let some people end up one terrible day by writing x = g_math_add (g_math_sub (a, g_math_mul (b, c)), d); instead of just x = a - b * c + d; You mean of course g_math_assign(&x, g_math_add (g_math_sub (a, g_math_mul (b, c)), d)); Stefan

Re: optimal way to use Memory Chunks

2005-11-09 Thread Gus Koppel
Olivier Sessink wrote: > Gus Koppel wrote: > > What sort of 4 byte information is to be stored, if I may ask? Is it > > to be referenced mainly by entry numbers (1st, 2nd, 3rd, ... atom) > > or by contents, i.e. locating atoms that contain particular values? > > Possibly for your app GMemChunks ar