I've noticed if one wants to draw on a pixmap
with a certain color they pull some component
off the drawing area like so:
myDrawingArea1->style->black_gc
myDrawingArea2->style->black_gc
Q1:
Is black_gc on
drawing area1 different from black_gc
on number 2???
Can I get these pointers fr
In GTK 2.0:
Funtion gdk_event_mask_get_type() return a GType.
How could I retrieve the GFlagsValue structure values from this type ?
So basically I am looking for the reverse functions as
g_flags_register_static() and g_enum_register_static().
TIA,
Olivier
Hi,
Christian Seberino <[EMAIL PROTECTED]> writes:
> Thanks! I'm getting the impression NOTHING should be
> done in configure_handler. Why even bother to
> bind it to *anything* then? Am I wrong?
there are cases where it makes sense to use the configure event
but in most cases you just ignore
I am very close to getting GTK+2.0 to compile on HP-UX 10.26
SecureWare but I am running into a minor problem with png support when I
am 'make'ing
In my ./configure it appears that I have picked up my proper png libs
config.log:
configure:13101: checking for png_read_info in -lpng
configure:13
> 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
Ron
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!?!?!?
This is why I'm confused by suggestion to add
gdk_draw_pixmap to configure event handler. Do you
mean (or is it OK) to do drawing in expose event
and
Sven
Thanks! I'm getting the impression NOTHING should be
done in configure_handler. Why even bother to
bind it to *anything* then? Am I wrong?
Chris
On Tue, Mar 12, 2002 at 09:29:08PM +0100, Sven Neumann wrote:
> Hi,
>
> Christian Seberino <[EMAIL PROTECTED]> writes:
>
> > It is slowly beco
Your suggestion makes perfect sense to me. It seems like that
*must* be what is wrong. Yet I checked my code and can't see it
#define INI_N_MASSES 1
#define MIN_N_MASSES 1
#define MAX_N_MASSES 2048
#define INC_N_MASSES 1
...
numberOfMassesSliderAdj = GTK_OBJECT(gtk_adjustment_new(
On Tue, 12 Mar 2002 12:58:16 PST, Christian Seberino <[EMAIL PROTECTED]> said:
> If I make a slider for a value that goes from
> 0 to 2000, then leftmost value is 0
> *BUT*, rightmost value is 1999!!!
>
> Why do I lose the last number?
Sounds like a fencepost error to me. Is it "min 0 max 2000
If I make a slider for a value that goes from
0 to 2000, then leftmost value is 0
*BUT*, rightmost value is 1999!!!
Why do I lose the last number?
Chris
--
===
| Dr. Christian Seberino || (619) 553-7940 (office) |
| SPAWARSYSCEN 2363 |
[EMAIL PROTECTED] (Joachim Klähn) writes:
>
> trying out example 1 of section GtkDrawinArea of GTK2.0.0 Reference
> Manual (sample code at the end of the mail) I got some trouble.
> I'm using GTK2.0.0
>
> The sample draws a filled circle in a window.
> Changing the width of the window changes t
Hi,
Christian Seberino <[EMAIL PROTECTED]> writes:
> 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 th
Hello,
trying out example 1 of section GtkDrawinArea of GTK2.0.0 Reference
Manual (sample code at the end of the mail) I got some trouble.
I'm using GTK2.0.0
The sample draws a filled circle in a window.
Changing the width of the window changes the circle's diameter to.
Changing the height of th
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
[EMAIL PROTECTED] writes:
> Oh hell!!!
>
> Now I'm scared! Why did nobody tell me before? Is that common
> with all GUI toolkits?
Pretty much (it's true of all X toolits that I know of). And every
new GUI programmer gets bitten by it.
> > Not unless you create a separate thread for the ca
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 callbacks
that some hidden routine says, "OK, now we ne
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 sugge
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?
somewhere inside your calculations, call
Oh hell!!!
Now I'm scared! Why did nobody tell me before? Is that common
with all GUI toolkits?
> Not unless you create a separate thread for the calculations. When the
> calculations finish, you should be able to interact with the GUI again.
The problem is: I'm no (good) thread programmer and
>here to set the label:
>
>
>gtk_label_set_text(GTK_LABEL(GTK_BIN(you_button)->child),your_text);
>
>
>to get the label
>
>gtk_label_get (GTK_LABEL (GTK_BIN (your_button)->child), &text_in_label);
alternatively:
GtkWidget *label = gtk_label_new ("");
GtkWidget *button = gtk_butto
here to set the label:
gtk_label_set_text(GTK_LABEL(GTK_BIN(you_button)->child),your_text);
to get the label
gtk_label_get (GTK_LABEL (GTK_BIN (your_button)->child), &text_in_label);
HTH
A R
[EMAIL PROTECTED] wrote:
>Hi,
>
>I'm trying to change the label of a button, but i don't see
Hi!
I use slackware, and I think all slack users will have the same problem.
Freetype 1.x and 2.x come installed together under /usr/X11R6 and when compiling
pango, if /usr/X11R6/include is before than /usr/X11R6/include/freetype2 in the
INCLUDES variable, gcc will try to use /us
Hi,
I'm trying to change the label of a button, but i don't see any method to
use..
Does anyone know the method?
Afonso
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Hi,
I have a problem compiling Gtk 2.0.0 on a Compaq Alpha running osf 4.0e.
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -I.. -I../gdk
-I../gdk-p
ixbuf -DG_DISABLE_CAST_CHECKS -I/usr/users/coul1358/local/include/glib-2.0
-I/us
r/users/coul1358/local/lib/glib-2.0/include
-I/usr/use
GtkWidget *win; GtkWidget *lbl1;/*
create a window */ win =
gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_signal_connect(GTK_OBJECT
(win), "destroy", GTK_SIGNAL_FUNC(destroy),
NULL); gtk_container_set_border_width(GTK_CONTAINER (win),
10); /* create a label */ lbl1= gtk_label_new
We are pleased to announce the availability of GVD, the GNU Visual
Debugger, a general purpose graphical debugger front-end licensed
under the GNU General Public License.
Besides providing all the features of other debugger GUIs, GVD
includes advanced data display and visualization capabilities.
>Hi. Anyone can tell me how to make a connection IPC
>with GTK? I work with sockets without GTK. Exist
>sockets by GTK?
GTK is a toolkit for creating graphical user interfaces. It has
nothing to do with sockets or other IPC mechanisms, though it has some
builtin support to make integrating I/O ha
Hi. Anyone can tell me how to make a connection IPC
with GTK? I work with sockets without GTK. Exist
sockets by GTK?
Thanks.
__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
On Tue, 12 Mar 2002 [EMAIL PROTECTED] wrote:
> Hello all,
>
> I've the following situation in/with my GUI (actually
> I'm using Gtk--, but that shouldn't matter because
> Gtk-- is only a wrapper for Gtk+):
> A checkbutton gets pressed and calculations
> begin (involving retrieving of images from
> From: [EMAIL PROTECTED]
> X-Priority: 3 (Normal)
> X-Authenticated-Sender: #[EMAIL PROTECTED]
> X-Authenticated-IP: [128.131.86.231]
> X-Flags: 0001
> Content-Type: text/plain; charset="us-ascii"
> Sender: [EMAIL PROTECTED]
> X-BeenThere: [EMAIL PROTECTED]
> X-Loop: [EMAIL PROTECTED]
> X-Mailman
Hello all,
I've the following situation in/with my GUI (actually
I'm using Gtk--, but that shouldn't matter because
Gtk-- is only a wrapper for Gtk+):
A checkbutton gets pressed and calculations
begin (involving retrieving of images from a
video camera and processing them). And
at this moment the
I saw more one thing : my Glade doesn't generates the intl directory
inside my project directory, I believe that this is the problem, but I
don't know why this occurs and how to fix it.
Thanks a lot
Flavio Alberto
Em 12 Mar 2002 08:51:34 -0300, Flávio Alberto Lopes Soares escreveu:
> Hello,
> I
Hello,
I installed Dedian Potato 2.2r5 in my machine, and tryied to compile one
program that I was making, the interface was made by Glade, and when I
run ./autogen.sh it creates the configure file and attempts to run it,
but the configure file has an error in some macros (I don't know if this
the
Hi,
GTK+-DirectFB implements a GDK backend for GTK+-2.0.0 based on
DirectFB, a graphics hardware abstraction layer for the Linux
framebuffer. As DirectFB provides drawing functions, a windowing
stack and manages input devices, this is a lightweight GDK port.
Due to the use of DirectFB, graphic op
GtkAda 2.0.0 release
GtkAda is an Ada95 graphical toolkit based on Gtk+. It allows you
to develop graphical applications in Ada95 using Gtk+.
The primary download site is http://libre.act-europe.fr/GtkAda
This version represents a major update to the Gtk+ 2.0 API.
Most of t
On 11-Mar-2002 Owen Taylor wrote:
>
> GLib-2.0.0 is now available for download at:
>
> ftp://ftp.gtk.org/pub/gtk/v2.0/
>
> GLib is the low-level core library that forms the basis for projects
> such as GTK+ and GNOME. It provides data structure handling for C,
> portability wrappers,
36 matches
Mail list logo