How can I wrap or scroll text inside a GtkLabel to keep the width?

2008-12-11 Thread Guenther Meyer
hi, I have GtkLabels packed inside some vboxes or tables, the width of the box is determined by the size of some other elements (buttons, listviews, ...). when the text inside the labels is changed, and this text is too long to fit, the box automatically resizes, which distorts the whole window

Re: How can I wrap or scroll text inside a GtkLabel to keep the width?

2008-12-11 Thread Alexander Semenov
Guenther Meyer wrote: hi, I have GtkLabels packed inside some vboxes or tables, the width of the box is determined by the size of some other elements (buttons, listviews, ...). when the text inside the labels is changed, and this text is too long to fit, the box automatically resizes, which dist

GLib Main event loop with IOChannel and order of events? cross-post gtk-list (no answer)

2008-12-11 Thread Sune Ahlgren
Hi, I'm writing a UDP server where I set up 1 socket for multicast messages(SOCKET A) and 1 for the wildcard address ANY(SOCKET B). These sockets are monitored as IOChannels and added to the main event loop. Problem -- In case of receiving a single multicast message I get 1 event o

Re: How can I wrap or scroll text inside a GtkLabel to keep the width?

2008-12-11 Thread Michael Cronenworth
Original Message Subject: How can I wrap or scroll text inside a GtkLabel to keep the width? From: Guenther Meyer <[EMAIL PROTECTED]> To: gtk-app-devel-list@gnome.org Date: 12/11/2008 02:22 AM hi, I have GtkLabels packed inside some vboxes or tables, the width of the box is d

Re: GtkProgress demo from tutorial not working on ubuntu hardy?

2008-12-11 Thread Till Harbaum / Lists
Hi, weird: the same code works as expected on the nokia n810. My problem with the fact the changing the stausbar backround color also only happens on the PC and works as expected on the n810. How comes? Why are there at least two things not working as advertised on a stock ubuntu hardy unit but o

FileSelection widget and DnD

2008-12-11 Thread Jeffrey Barish
Does the FileSelection widget support DnD? I would like to use the FileSelection widget to select a folder and then drag filenames to the icon for that folder to cause the files to be written to the selected folder. -- Jeffrey Barish ___ gtk-app-devel-

Can anybody providing some code about putting some controls to notebook page?

2008-12-11 Thread xu jiang
Hi, Can you give some code about putting a treeview control, a text and a button to a notebook page? Thanks, Jane ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Confusing about memory leak and GtkTreeView, GtkCellRendererCombo & GtkCellRendererSpin

2008-12-11 Thread Keedi Kim
HI, :-) Memory leak and reference counts are very confused. I am using GtkTreeView with GtkCellRendererCombo and GtkCellRenderSpin. So, I use Adjustment for GtkCellRendererSpin and GtkListStore(or GtkTreeStore) for GtkCellRenderCombo. Some of columns uses same Adj, and TreeModel, so saved them in

Re: Confusing about memory leak and GtkTreeView, GtkCellRendererCombo & GtkCellRendererSpin

2008-12-11 Thread Yu Feng
Hi Kim, Usually if a property of a GObject is G_TYPE_OBJECT, the GObject will hold a reference count of that property. And because your GtkAdjustment is created in a floating state, you don't need to unref it after setting it as a property value of a GObject. refer to line 209:gtkcellrendererspi

Re: Confusing about memory leak and GtkTreeView, GtkCellRendererCombo & GtkCellRendererSpin

2008-12-11 Thread Keedi Kim
Thanks Yu, Now I could understand a little bit about floating and reference count. :-) I'm sorry to bother you, but.. then are the following answers right? 1. If I use GtkCellRenderSpin and make new GtkAdjustment which is saved in the **Renderer**, then do I have to do g_object_unref(adj) ? ->

Re: Confusing about memory leak and GtkTreeView, GtkCellRendererCombo & GtkCellRendererSpin

2008-12-11 Thread Yu Feng
On Fri, 2008-12-12 at 15:18 +0900, Keedi Kim wrote: > Thanks Yu, > > Now I could understand a little bit about floating and reference > count. :-) > > I'm sorry to bother you, but.. Not a problem. I couldn't get asleep anyways. > then are the following answers right? > > 1. > If I use GtkCellR