Re: [gtk-list] Re: GDK




I don't use GNOME, but I'll look at the app.

Perhaps it would be easier if some one good wrote about 75 lines of code
that would demonstrate the key features of the toolkit and eluminate the
following issues.

1. Where can you draw stuff? (Any widget->window?)
2. How do you erase stuff?
3. How do you make drawings stick? (If I cover the window, the drawings
dissappear.)
4. Why can't one say "Draw a #00aaff line"? (Expain the details of the
color argument of gtk_draw_XXX(...))

I think this would be helpful to a lot of potential developers who know
next to nothing about X programing. I'm thanking anyone in advance who
would do this for us.

Pavel


On Wed, 16 Jun 1999, Decklin Foster wrote:

> pavel writes:
> 
> > Can anyone point to an example which does a lot of multicolor drawing,
> > erasing and genereally demonstrates the capabilities of the drawing
> > toolkit? I think many many people will find it useful.
> 
> ObAnswer: I remember someone citing gstripchart on this list, it's
> probably in the GNOME software map. It might be helpful.
> 
> If anyone can give me some clues (or work on the documentation!)
> regarding the X11-specific functions in gdkx.h and gdkprivate.h, I
> would really appreciate it. I think I posted it before but I'm trying
> to decipher this code:
> 
>   dummy_win = gtk_window_new(GTK_WINDOW_POPUP);
>   gtk_widget_realize(dummy_win);
>   gdk_window_set_user_data(GDK_ROOT_PARENT(), dummy_win);
>   gdk_window_ref(GDK_ROOT_PARENT());
>   gdk_xid_table_insert(&(GDK_WINDOW_XWINDOW(GDK_ROOT_PARENT())), 
>                        GDK_ROOT_PARENT());
>   gtk_signal_connect(GTK_OBJECT(dummy_win), "property_notify_event",
>                      GTK_SIGNAL_FUNC(cb_root_prop_change), NULL);
>   XSelectInput(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(GDK_ROOT_PARENT()), 
>                PropertyChangeMask);
> 
> Well, see my previous posting (if this list is archived), I just have
> to snap up any opportunity to whine about it again.
> 
> > Pavel
> 
> Nice to see you here... :)
> 
> -- 
> None of us can say who will succeed, or even who has or who has not
> talent. The only certain thing about us is that we are too many.
>                                              --William Butler Yeats
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]