Re: How to put widget in CUSTOM GtkContainer

2008-04-29 Thread AlannY
Milosz Derezynski wrote: > I don't believe that using set_parent() will actually place the widget > inside the container; try gtk_container_add(GTK_CONTAINER(grid), > widget); instead I don't believe in it too ;-) So I decide to ask what to do ;-) gtk_container_add not works ;-)

Re: How to put widget in CUSTOM GtkContainer

2008-04-29 Thread AlannY
Tomas Carnecky wrote: > AlannY wrote: > That still isn't the whole code! What does grid_class_init() do? Attach > both the whole grid header and source file to the email. /* ** */ static void grid_class_init (GridClass *class) {

How to put widget in CUSTOM GtkContainer

2008-04-29 Thread AlannY
Hi there, my name is Alan and I have some troubles with GtkContainer. It's about 2 days, I already have spent trying to solve it, but I (i guess) can't. I'm writing a program, which looks like: +-+ | Main Window (GtkWindow) | | +-+ | | | My

GtkContainer problems

2008-04-29 Thread AlannY
Hello. I'm writing a custom widget. It's inherits from GtkContainer. So: typedef struct _MyWidgetMyWidget; typedef struct _MyWidgetClass MyWidgetClass; struct _MyWidget { GtkContainer parent; }; struct _MyWidgetClass { GtkContainerClass parent_class; }; I'm wrote a smal

Widgets in widget

2008-04-28 Thread AlannY
Hi there. I'm writing a custom widget. And I need to place some other widgets in my widget. SO: +-+ | My custom widget| | +-+ | | | GtkVBox | | | | +-+ | | | | | GtkButton | | | | | +---

Rearrange childes of VBOX

2008-04-25 Thread AlannY
Hi there ;-) I have a window with included vbox, which includes some count of widgets. When I press button, I want to change position of this widgets in this vbox ;-) How to do it? ANSI art: ++ | Window | | +-

Drag and drop widget

2008-04-25 Thread AlannY
Hi there. I need an explanation about how to drag and drop widget. I saw a tutorial where one man shows how to transfer a text/plain data between a CList (deprecated)... but I don't imagine how to transfer a whole GTK+ widget. Should I destroy source widget and create exactly new in new plac

Re: windows GTK in assembly

2008-03-26 Thread AlannY
On Wed, Mar 26, 2008 at 05:05:36PM +0200, Jason Ward wrote: > Hi. > I am trying to use GTK in windows with assembly language but I have a > problem. > When I make an API call I need to specify the dll name that the function > comes from. > > so I have > dllname.gtk_init Try Dependency Walker (www

How to change cursor

2008-03-25 Thread AlannY
Hi there, my name is Alan. I have a custom widget and I want to change mouse cursor while it exists on some (custom) area of my widget. So ANSI art: +-+ | Custom widget | |+--+ | || area | | |+--+ | +-+ I need to change cursor fro

How to make GtkTreeView and GtkTextView scrollable?

2007-11-16 Thread AlannY
Hi. I want to make my GtkTreeView and GtkTextView scrollable automaticaly. How to do it? It's lame question. I know. Thank you. -- |\ _,,,---,,_ /,`.-'`'-. ;-;;,_ |,3- ) )-,_. ,\ ( `'-' '---''(_/--' `-'\_) ___ gtk-app-devel-

Re: How to implement popup message dialog

2007-11-03 Thread AlannY
Kenneth Østby wrote: > Hi there, > > On 11/3/07, *AlannY* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > > How to implement it with best way? Using GTK+. > > > > I think what you're looking for is the libnotify, do a quick se

How to implement popup message dialog

2007-11-03 Thread AlannY
Hi. So, picture: +-+ | Desktop | | +---+ | | popup window| | | | |-+---+---+ | taskbar | * | clock | +-+-

debugging GTK application

2007-10-28 Thread AlannY
Hi there. I have some problem with gdb and GTK+. My program crashes with SIGSEGV (you know) and I want to find where is mistake, but GTK+ don't allow it. So... 1) Open GTK+ window (it's alright) 2) Run gtk_file_chooser_dialog_new(...) On second step "gdb" (you know that amazing tool) are "hangs"

window and widget resize

2007-10-17 Thread AlannY
Hi again ;-) I have that interface: +---+ | +---+ | | | | | | | Widget 1| | | | | | | +---+ | | +---+ | | | | | | | Widget 2| | | | | | | +---+ | +--

Re: GtkTextBuffer crashes

2007-10-15 Thread AlannY
AlannY wrote: > Hi there. > > I have trouble in my program. > > First of all, I'm using latest GTK and got many assertion in console > when using GtkTextBuffer. > > Second. I have 2 threads. First one is a gtk_main_loop. Second one is my > (pthread) thread. In

GtkTextBuffer crashes

2007-10-15 Thread AlannY
Hi there. I have trouble in my program. First of all, I'm using latest GTK and got many assertion in console when using GtkTextBuffer. Second. I have 2 threads. First one is a gtk_main_loop. Second one is my (pthread) thread. In second thread I'm trying to set this: gtk_text_buffer_set_text(win