Pointer in drag'ndrop ?

2000-07-12 Thread Florent. Devin

Hi,
How can I pass a pointer in my dnd function ?
You have to use gtk_selection_data_set function, but how can I put
a pointer in the data field ?
I use this function to pass string,

void source_in_connector_get (GtkWidget *widget,
GdkDragContext *context,
GtkSelectionData *selection_data,
guint info,
guint time,
gpointer data)
{
.../... 
gtk_selection_data_set (selection_data, selection_data-target, 8,
data, (gint) (strlen (data)));
.../...
}
But in this function my data is a pointer to an object, so how can I
pass
something different ?

-- 
Florent DEVIN

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



retain user set window position after show the window again

2000-07-12 Thread WAN Hing Wah

I use gtk_Widget_set_uposition to set the default window position when I
start the program,however I want to let user to drag the window to other
position after it.In my menu part I have a function which is used to show
and hide the gtk_window by gtk_widget_show and gtk_widget_hide
respectively.
However, after the window is hided and show again...the Window will
show at the position where gtk_widget_set_uposition is set.
However,I wanna maintain  what the user have drag the window to.What can I
do?
 


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Gtk-WARNING **: Unable to locate loadable module in module_path: libpixmap.so

2000-07-12 Thread David Frascone

I have looked in all the archvies, and see a few people ask about this error,
but none of their questions were ever asked.

The library does exist, it /usr/lib/gtk/themes/engines.  I've tried pointing
module_path to it via the following line in my .gtkrc:

module_path "/usr/lib/gtk/themes/engines"

I've even tried adding that path to my ld.so.conf.  No luck.  Please tell me
what I'm doing wrong.

gtk-version:  1.2.8
glib-version: 1.2.8

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: gtk_text_buffer_new()

2000-07-12 Thread Havoc Pennington


S A [EMAIL PROTECTED] writes:
 I want to know more about text buffer "its data structure and how to
 maintain it". I did not find it in the documentation os gtk 1.2.8 . I think
 it used in gtk 1.3 or some thing like this.
 

It's in the unstable, unreleased version of GTK+, and is not yet
documented. You can find it in CVS, and there's an example called
"testtext".


Havoc

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Maturity of gtk+ on NT?

2000-07-12 Thread Eric Monsler

Hi all,

I'm wondering about the maturity level of the port of gtk+ to
WindowsNT.  If I write a GUI application using gtk+, perhaps doing some
displays with glade, can I reliably expect to be able to run it on NT
after recompilation with cygwin/mingwin?

I don't anticipate any serious OS interaction for the application,
basically just sending and receiving UDP messages.

Also, anyone have success stories with using libglade on NT?  

How about on mixing glade and hand-built displays?

Some of my displays would really benefit tremendously from being
changeable on the fly, without recompilation, but I might be launching
those displays from another display not built with glade.

If these questions are more appropriate for the gtk-app-devel-list, my
apologies and please let me know.

Thanks in advance,

Eric Monsler

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Maturity of gtk+ on NT?

2000-07-12 Thread Timothy M. Shead

- Original Message -
From: "Eric Monsler" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 12, 2000 3:37 PM
Subject: Maturity of gtk+ on NT?


 Hi all,

 I'm wondering about the maturity level of the port of gtk+ to
 WindowsNT.  If I write a GUI application using gtk+, perhaps doing some
 displays with glade, can I reliably expect to be able to run it on NT
 after recompilation with cygwin/mingwin?

I've found it to be quite reliable under Win32.  I sometimes notice some
extraneous refreshes, but I assume this is due to differences between Win32
 X.  Some drag-and-drop features don't seem to be implemented.  A final
caveat is that I have only used it with MSVC under Win32 - as I understand
it, compiling GTK+ under cygwin is somewhat convoluted.

 Some of my displays would really benefit tremendously from being
 changeable on the fly, without recompilation, but I might be launching
 those displays from another display not built with glade.

If you use C++, you would benefit greatly from the SDPGTK class library for
GTK+ ... it is able to combine run-time generated UIs with XML layout files
and "native" gtk_ calls with great simplicity and flexibility.
http://www.k-3d.com

Regards,
Timothy M. Shead
[EMAIL PROTECTED]




___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list