From: Andr? K?ster [EMAIL PROTECTED]
Hi,
I want to play a little bit with the glib2.0 Mainloop, now I have a
question. I can add multiple Eventsources, but they are obviously
timer-controled. In GTK I have gtk_signal_connect, to connect a signal
to a specific event. I think glib's
From: Ricardo Lebre [EMAIL PROTECTED]
I'm developing a multithreaded server application using gtk+-1.2 and real
time is a critical factor.
On my application the main thread (A) launches thread (B) that initializes
a gtk console and blocks itself at gtk_main(). After that, thread (A)
From: Andrew E. Makeev [EMAIL PROTECTED]
Daniel Elstner wrote:
Am Mon, 2002-06-10 um 11.33 schrieb Andrew E. Makeev:
Btw, if I did
g_io_channel_set_encoding(chan, 0, 0) (that should set encoding to NULL, right?
or I had to send NULL as parameter?) g_io_channel_read_chars()
From: Roy Wood [EMAIL PROTECTED]
you might want to have a look at the DirectFB port
(http://www.directfb.org/gtk.xml) Perhaps it is a better starting
point for your porting efforts. But then, why would one want to
port GTK+ to SDL if there's already a port to DirectFB ...?
SDL runs on
From: Bradley F. Hartman [EMAIL PROTECTED]
Hello,
I have found that the parameters that GTK passes to the callback for
adjustments are swapped (reversed from what the prototype indicates they
should be). The documentation for the prototype for the callback
for the value-changed signal for
From: Christian Seberino [EMAIL PROTECTED]
I've seen examples in GTK+ books where GdkColor widgets
are not declared to be pointers (GdkColor* myColor;)
but instead declared like this... (GdkColor myColor;)
I don't know if this begins to explain g++ not liking
this initialization or
From: Christian Seberino [EMAIL PROTECTED]
Thanks so much for this reply! I was really confused
about this! Can I ask you a follow up question?
Just to make GdkColor be like everything else (a pointer)
is it OK to try declaring all colors to be pointer (GdkColor*) types???
Then instead
From: David Vestal [EMAIL PROTECTED]
I am trying to install GTK-2.0.2 and am having problems. I have already
installed Glib-2.0.1, Pango-1.0.1, ATK-1.0.1, and GTK-2.0.2 everything
has seemed to configure, make, and install correctly with no errors.
But, my system can't find gtk-config. I
From: Andrei Zmievski [EMAIL PROTECTED]
Is there a way to find out toplevel window dimensions if the user has
resized it? I realize it depends on the window manager, but still..
Sure. If your top level window widget is GtkWidget* window, then
gint width, height;
From: Patrick Pell? [EMAIL PROTECTED]
the thing is that I am working on a big application
with is using Motif for the IHM part...
I have made a 'colorSelection' like object (in 'C')
and I would like to make the two application comunicate...
Like U chose the color in the GTK frame , and
From: Jyothi [EMAIL PROTECTED]
Hi,
I am trying to draw lines on a drawing area based on the mouse
motion event. ie. when the mouse moves on the drawing area, I just
collect the x and y points and use gdk_draw_line to connect b/w two
points. I do this till I get button-release event.
From: Jyothi [EMAIL PROTECTED]
Hi,
Can anyone tell me how to emit expose_event everytime, I want to
draw something on the drawing area.
Call gtk_widget_queue_draw() on the widget.
Ron Steinke
___
gtk-list mailing list
[EMAIL PROTECTED]
From: Bradley F. Hartman [EMAIL PROTECTED]
In order to implement a timeline widget using the GTK TreeStore, TreeView
and TreeViewColumn classes, I believe I'll have to implement a CellRenderer
to draw the timeline for each task. The CellRenderers provided by GTK
(Pixbuf, Text and Toggle)
From: Paul Davis [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Hi,
i'm doing something that involves GtkDrawingArea, in which i paint
some GdkPixmaps, and some of this GdkPixmaps have some
transparent areas, the problem is when i paint them, the transparent
areas are painted in
From: Christian Seberino [EMAIL PROTECTED]
This Makefile will recreate GTK+ object file if header file
is touched with touch command which is good
It will NOT recreate object file when *.cpp file is
touched the same way.
WHY IS the %.o: %.h rule working
but the %.o: %.cpp rule IS
I'd like to modify the way line breaking works in a
GtkTextView (specifically, to prevent breaking between a / and
an immediately following alpha character, so /foo isn't broken).
After digging through the docs for a while, it looks like the
way to do this is to override the default
From: [EMAIL PROTECTED]
And when you include C librarys in C++ do it in this way:
extern C{
#include gtk/gtk.h
#include gdk/gdk.h
}
This shouldn't be necesarry with gtk, because the headers
include the 'extern C' stuff, wrapped in '#ifdef __cplusplus'.
Ron Steinke
From: Paul Davis [EMAIL PROTECTED]
yes, it is common to more or less all GUI toolkits, regardless of OS
platform.
Isn't there a way to shortly stop calculations (for a necessary minimum
of time) and let the GUI gather possible events? Could this work
this way somehow? Any suggestions?
From: Christian Seberino [EMAIL PROTECTED]
Paul
It is slowly becoming clearer thanks to you. We can draw
on a pixmap which is associated with a window which
is part of a drawing area.
Configure/Expose events that *just* modify pixmaps work
great. I assume at the end of one of those
From: Christian Seberino [EMAIL PROTECTED]
Thanks for the reply. It seems that NOTHING should be
done in configure event handler. I'm wondering why
even bind it to ANY function!?!?!?
If you care specifically about the user resizing or moving your
window, it's useful. It's not really
From: Jyothi [EMAIL PROTECTED]
Hi,
I have a xpm . I convert it into pixmap using the following
functions.
Pixmap = gdk_pixmap_colormap_create_from_xpm( eventbox-window ,
gdk_colormap_get_system(), NULL, NULL,Address.xpm);
Gtkpixmap = gtk_pixmap_new( Pixmap, FALSE ) ;
Now I want to
From: Peter Jay Salzman [EMAIL PROTECTED]
hi there,
using sdl i draw a number of circles (electric charges) and would like
to know when the user clicks on a charge. a basic charge is a struct:
typedef struct {
SDL_Surface *img;
int magnitude;
SDL_Rect rect;
}
From: Jeff Shipman - SysProg [EMAIL PROTECTED]
Because we have 1500+ users which are added
every semester and EVERYONE needs to be able
to read it. There are three different levels
of access which are determined upon startup
by which group you are in (nothing special,
worker, or manager).
From: Ramon Alberto Triay Espinosa [EMAIL PROTECTED]
simple question:
does all the 'children' widgets inherit all the functions of the
'parent' widget?
I mean, does all functions that apply to a widget, apply to their
children too?
thanx
rtriay
:)
Yep. All you need to do is cast them
From: [EMAIL PROTECTED]
realize
i tried it but it never happens!
show
i tried it but nothing happened again...
map
i tried the map_event and it worked, but not on the first time..
i have a drawing area and i want to draw somethings on it when the
window appears, but nothing is
From: Ignacio Nodal [EMAIL PROTECTED]
Hi,
In my program I have a window where I select a VRML file to load, press
OK and in the button callback, I hide this window and call my function
to read the VRML file (I use CyberVRML97 for this).
The problem is that my GTK+ application seems to
From: Marco Lettere [EMAIL PROTECTED]
hello everyone,
suppose I've a pixmap with a color which I want to modify with 3 slider
widgets for RGB.
The way I'm performing it now is to destroy the old pixmap, change the xpm
C structure and then recreate the pixmap with the new data.
Isn't there
From: Lin, Lynn [EMAIL PROTECTED]
Hi there,
If I create a GtkWidget* gtk_drawing_area_new, can I call OpenGL or
Inventor routines to draw 3D graphics on the GTK drawing area widget ? If
yes, how to do it ?
I'm aware of this project:
http://www.student.oulu.fi/~jlof/gtkglarea/
which
From: Chris Seberino [EMAIL PROTECTED]
gtk_main makes program wait for GTK+ events.
What if I want to have a math program
also running **at the same time**??? I want
this math program to keep streaming
numbers that cause pictures to change on GUI.
Likewise, I want events to affect
From: Fl?vio Alberto Lopes Soares [EMAIL PROTECTED]
Hello all,
I'm developing an application that need replace a pixmap from a pixmap
widget by another to make the blinking effect, I change few things in
function create_pixmap() suplied by Glade and I achieved to make this,
but the
From: Jyothi [EMAIL PROTECTED]
Hi,
The problem I am facing is , I create a drawable area using
gtk_drawing_area_new and gtk_drawing_area_size and send it to some other
function to create a pixmap and draw pixmap in that area...
it is giving the error ..
You're confusing two completely
From: Mani Murugesan [EMAIL PROTECTED]
Hello,
I want to validate the contents of the entry widget and if necessary to NOT
allow focus out of that entry widget. But it is not possible to do this.
I use gtk_entry_new() to create the widget.
I capture the 'focus_out_event' with a signal
From: David J. Topper [EMAIL PROTECTED]
Havoc Pennington wrote:
There isn't a way to change it, other than add/remove. The add/remove
should work fine though, it's only a couple more lines of code to
type.
It does work just not smoothly. Basically, I'm working on a simple audio
app.
From: Havoc Pennington [EMAIL PROTECTED]
Just use GtkDrawingArea and draw a colored rectangle in there, or
GtkPixmap and keep swapping between a couple pixmaps, for example.
This reminds me of something. A while back on one of the lists,
someone said something about GtkDrawingArea being
From: Jim Edwards [EMAIL PROTECTED]
I think so
glibconfig.h:
#define GPOINTER_TO_UINT(p) ((guint) (p))
#define GPOINTER_TO_INT(p) ((gint) (p))
The thing is, anything in glibconfig.h is _platform specific_.
On _your platform_, the macros are defined that way,
so GPOINTER_TO_UINT(NULL) is
Is it possible to assume that
GPOINTER_TO_UINT(NULL) == 0
across all platforms? Whether this is true or false, it
might also be a good thing to mention in the docs.
Ron Steinke
___
gtk-list mailing list
[EMAIL PROTECTED]
From: Gregory Babusiaux [EMAIL PROTECTED]
hi i'm greg from belgium.
I'd like to develop a simple simulation game for the x-window system.
the screen would be separated in three windows acting separatly but in parallelism.
the main window would contain simple graphics (a point moving on a
From: Francis Smit [EMAIL PROTECTED]
You can pass data in those gchar* and gint parameters, with a bit of
casting
you should be able to pass structures and other stuff.
[EMAIL PROTECTED] wrote:
I'm looking up a signal handler, based on the object instance
and the callback function,
I'm looking up a signal handler, based on the object instance
and the callback function, and would like to get a pointer to
the callback data for that handler. I can get the handler id, but
can't figure out how to get any more information. The missing
step appears to be a way to get a
From: Frank Chen [EMAIL PROTECTED]
I installed all packages in 1.3 directory. The gtk-config command still
remains the old
settings. If I want to compile by my hand, which include files and
libraries should I
feed to gcc to compile programs written for gtk 1.2?
You need to use pkg-config
From: BAIJU M [EMAIL PROTECTED]
Hi,
I am new to this mailing list (to linux also). I want to develope an
application software in linux.Could you list some references for GTK+
other than this mailing list and gtk.org . Where I can find some nice
documents about GTK+ .(Please mention any
From: Raja R Harinath [EMAIL PROTECTED]
However, it appears that the reason you want to build $(libglib) is
that you want to distribute the built sources. It's not necessary to
distribute those files which are generated using C code (i.e. using
glib-genmarshal.*). It is only necessary to
From: Random User [EMAIL PROTECTED]
One of the projects we are looking at right now has a really tight
deadline for a customer demo. (that is, our customer wants to demo
it to somebody else) We are putting together a clunky demo unit for
the first pass as a proof of concept. It runs a
From: Marco Lettere [EMAIL PROTECTED]
how can I obtain a widget which is able to respond to mouse-click events
even if it is not a gtk button.
I would like to create a progress bar which grows on a click of mouse
button 1 and shrinks on a click of mouse button 2.
is this possible with
From: jkgjkg jgkjggk [EMAIL PROTECTED]
Hi Guys,
Iam having a weird problem in using glib.My code
is pretty simple.Iam just using gprintf() and doing
nothing.But i am getting an error
undefined reference to g_printf.
Please help me.
Thanks a lot,
Veytui
What command line arguments are
45 matches
Mail list logo