which child of my box is the one currently activate?

2002-02-19 Thread Ignacio Nodal
Hi, I've a class (written in C++) whith a GtkGLArea and several callbacks connected to button_press_event, button_release_event, etc... I call it GGLSurf. Now I want to use this class in another one to insert two GtkGLArea widgets in my Application. This new class is not a subclass of

GTK+ problems using functions I used in Motif before

2002-02-17 Thread Ignacio Nodal
.. In fact.. I'm using the same functions I used in Motif before, and they worked pretty fine with Motif. What it's happening? Does it have something to do with GTK+ or am I just getting more and more crazy? Thanks in advance, Ignacio Nodal

Dialog Window

2002-02-16 Thread Ignacio Nodal
Sometime ago someone told how to make a dialog window to get the control of the application.. I mean the dialog window being the only one to have the focus until it's closed/hided... I just can't find that mail anymore.. could anyone remind me how to do this? :) Thanks, Ignacio

Re: Dialog Window

2002-02-16 Thread Ignacio Nodal
Paul Davis wrote: Sometime ago someone told how to make a dialog window to get the control of the application.. gtk_window_set_modal Mmmm, I didn't explain myself very good... My program has a main window with a GtkGLArea waiting impatiently for events to occur on it... Then I have a

problems with the redraw of widgets and callbacks with long operation time

2002-02-12 Thread Ignacio Nodal
doesn't care about my expose_event callback until the load ends. I don't like this behaviour, how could I avoid this? Thanks in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: problems with the redraw of widgets and callbacks with long operation time

2002-02-12 Thread Ignacio Nodal
[EMAIL PROTECTED] wrote: 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

Re: problems with the redraw of widgets and callbacks with long operation time

2002-02-12 Thread Ignacio Nodal
Oh, I see... well, then I'll have to be patient and wait for my VRML to end loading. The main computation time takes place in functions from the CyberVRML97 library. It's not my source, and I don't think I want to modify/hack it hehehe :-) Thanks for all, Ignacio Nodal - Original

don't wanna see this CRITICAL

2002-02-06 Thread Ignacio Nodal
... Does anybody know if I can call glViewport() without caring of the if (gtk_gl_area_make_current (glarea)) result?? I'm only using one GtkGLArea in my program. Thanks Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org

Re: don't wanna see this CRITICAL

2002-02-06 Thread Ignacio Nodal
- Original Message - From: Paul Davis [EMAIL PROTECTED] To: Ignacio Nodal [EMAIL PROTECTED] Cc: GTK-List [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 6:13 PM Subject: Re: don't wanna see this CRITICAL Is there any way to avoid this message from being prompt? ** CRITICAL

GTK+ equivalent to Motif XtAppProcessEvent()

2002-02-05 Thread Ignacio Nodal
== EXIT_WAIT) XtAppProcessEvent(GB_context, XtIMAll); if (state == EXIT_OK) { [...] } else { [...] } - Which is the GTK+ equivalent? Thanks, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman

How to ask if a widget is GtkMenuBar or GtkMenuItem

2002-01-14 Thread Ignacio Nodal
Hi, i'm writing my own functions to create menus, submenus, etc. In my function CreateMenu(GtkWidget* parent, gchar* label), I would like to know if my GtkWidget* parent parameter is either a GtkMenuBar or a GtkMenuItem.. how can I ask this? Thanks

Re: How to ask if a widget is GtkMenuBar or GtkMenuItem

2002-01-14 Thread Ignacio Nodal
Havoc Pennington wrote: Ignacio Nodal [EMAIL PROTECTED] writes: Hi, i'm writing my own functions to create menus, submenus, etc. In my function CreateMenu(GtkWidget* parent, gchar* label), I would like to know if my GtkWidget* parent parameter is either a GtkMenuBar or a GtkMenuItem.. how

GtkRadioMenuItem

2001-12-16 Thread Ignacio Nodal
calls the callback and not another. Any idea? Thanks in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: GtkRadioMenuItem

2001-12-16 Thread Ignacio Nodal
at the beginning of the GSList. Is there a better way to do this? I don't like this particular solution :) Thanks again, Ignacio Nodal Ignacio Nodal wrote: Hi, I've create a submenu using GtkRadioMenuItems. I don't want to use individuals callbacks for each GtkRadioMenuItems in the same

ToggleButton

2001-12-14 Thread Ignacio Nodal
states, I would like the button appearance not to change. Is there anyway to do this? Thanks in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

window size

2001-10-22 Thread Ignacio Nodal
Hi, it's possible to create a window with a minimum width without caring about the height? The height should be specified by the number of widgets packed in it. Thanks in advance, Ignacio ___ gtk-list mailing list [EMAIL PROTECTED]

Color Selection

2001-07-24 Thread Ignacio Nodal
) colorsel); The problem is I need and aditional pointer in order to know which widget I want to update. I only want to update if the ok_button is pressed,so the color_changed signal emitted by the GtkColorSelection doesn't look appropriate for me. How can I do this? Thanks in advance, Ignacio

Re: Color Selection

2001-07-24 Thread Ignacio Nodal
Ignacio Nodal wrote: Hi, I have create a GtkColorSelectionDialog and now I want to connect the clicked signal of the ok_button to update the color of a widget. ok_button = GTK_COLOR_SELECTION_DIALOG(pcsd)-ok_button; gtk_signal_connect(GTK_OBJECT(ok_button), clicked, (GtkSignalFunc

Option Menu

2001-07-04 Thread Ignacio Nodal
in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

pulldownmenu with check/radiobuttons

2001-07-03 Thread Ignacio Nodal
How is the easiest way to create a pulldown menu which item is a list of check or radiobuttons?? I want to write an enumeration, which can be a button with different pixmaps for each enumeration item (already done), or this pulldown menu i'm asking for.. Thanks in advance Ignacio Nodal

option_menu with show_toggle set to TRUE

2001-07-03 Thread Ignacio Nodal
option_menu widget the toggle button which appears pressed is at the beginnin always the first menu item, Option 1, and not Option 3 as I expected. How can I solve this? Thanks in advance, Ignacio Nodal [...] menu = gtk_menu_new(); menu_item = gtk_radio_menu_item_new_with_label(group

RE: Callbacks and Signals works with Classes?

2001-06-13 Thread Ignacio Nodal
now puting my functions in the private part and make them work. I'm not on linux at this moment, sorry. Regards, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

RE: Callbacks and Signals works with Classes?

2001-06-13 Thread Ignacio Nodal
From: Paul Davis [EMAIL PROTECTED] this is member function. C++ member functions are not, and never have been, interchangeable with regular C functions. this is a common confusion among relatively new C++ programmers (i suffered from it myself many years ago). Hey! Where was this email

button_press_event signal instead of toggled

2001-06-11 Thread Ignacio Nodal
it toggled only once, but know FALSE is pressed-in and TRUE raise-out. Is there any problem connecting the button_press_event signal instead of toggled? What's going wrong? Thanks in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED

problems with gtk_toggle_button_set_active() and check buttons

2001-06-10 Thread Ignacio Nodal
-_btn3callback; pf(pb-_btn3data); } break; } What's going wrong? Thanks in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

hbox widgets with different heights

2001-06-09 Thread Ignacio Nodal
in advance, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

(gtk_pixmap_new): assertion `val != NULL' failed

2001-06-07 Thread Ignacio Nodal
= gtk_pixmap_new( _pixmap, NULL ); gtk_widget_show( pixmapwidget); gtk_container_add(GTK_CONTAINER(_button), pixmapwidget); [...] Why isn't my _pixmap field being updated? Thanks again and again and again ;) Ignacio Nodal ___ gtk-list

Re: (gtk_pixmap_new): assertion `val != NULL' failed

2001-06-07 Thread Ignacio Nodal
as a parameter for gtk_pixmap_new(), outside from the function where I create it using gdk_pixmap_colormap_create_from_xpm_d()??? really, anyway... Thanks again... And sorry if my bad programming skills turn you nervous, just some more sighs and I hope it will work : Ignacio Nodal

Re: (gtk_pixmap_new): assertion `val != NULL' failed

2001-06-07 Thread Ignacio Nodal
) //the C way with some little internal changes, of course ;) Thanks for being so patient, I know this was basic pointers UNknowledge :)) Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Segmetation fault using assigning a GdkPixmap* to a GdkPixmap parameter (using C++)

2001-06-06 Thread Ignacio Nodal
On Thu, May 24, 2001 at 07:29:29PM +0100, Ignacio Nodal wrote: Hi, I want to write a function to read a pixmap string and store it into a GdkPixmap, but without having to know which widget it will be added into.By the way the widget could be still not created at all. The problem is if I

(2) Segmetation fault assigning a GdkPixmap* to a GdkPixmap parameter (using C++)

2001-06-06 Thread Ignacio Nodal
;(( Thanks again, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

size of table cells

2001-05-24 Thread Ignacio Nodal
in the xoptions parameter to let the width as in gtk_table_attach_defaults but I get the following error.. conversion from `int' to `enum GtkAttachOptions' So, I don't know how to tell my windgets to take all the window width... any advise? Thanks in advance, Ignacio Nodal

size of table cells

2001-05-23 Thread Ignacio Nodal
); gtk_table_attach_defaults(GTK_TABLE(table), separator2, 0,1, 3,4); . . . But so, all widgets have the same height, what am I doing wrong? Thanks in advance Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org

parameter mask for pixmaps

2001-05-22 Thread Ignacio Nodal
haven't found any example where the parameter mask is really used. I mean, in the examples i've found it will be the same to put a NULL instead. Can anyone show me an example using another value for mask?? Thanks in advance Ignacio Nodal ___ gtk-list

XtUnmanageChild

2001-05-07 Thread Ignacio Nodal
Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Setting background color for the widget of my application

2001-04-23 Thread Ignacio Nodal
Is this function the correct one to change the background color of my widgets? void gtk_widget_set_style(GtkWidget *widget,GtkStyle *style); I mean... modifying the GdkColor bg[5] field in the GtkStyle structure.. Thanks in advance Ignacio Nodal

Re: gtk_table_set_row_spacing

2001-04-02 Thread Ignacio Nodal
how (button); gtk_table_set_row_spacing (GTK_TABLE(table), 0, 15); gtk_table_set_row_spacing (GTK_TABLE(table), 1, 15); (...) Thanks, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

GList (.children) in GtkTable structure

2001-04-01 Thread Ignacio Nodal
Hi, From the API Documentation: "The GtkTable structure holds the data for the actual table itself. children is a GList of all the widgets the table contains." The gpointer field in this GList points into a GtkTableChild structure? Ign

Searching widgets in a table

2001-04-01 Thread Ignacio Nodal
tion in this GList of a widget in the table? Do the elements of this GList point into GtkTableChild structures? Thanks, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Motif to GTK+

2001-03-29 Thread Ignacio Nodal
() Is there anyway to make something similar in GTK+? Thanks, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Position of widgets

2001-03-27 Thread Ignacio Nodal
| | | Well, i hope someone is able to understand this :)) Could this be done in anyway? Sorry for my bad english :) Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

function type

2001-03-20 Thread Ignacio Nodal
, Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

RE: function type

2001-03-20 Thread Ignacio Nodal
to write some classes using C++. I said: "There's a C++ wrapper called Gtk--" But they were already working with GTK+ and didn't want to know nothing about Gtk--. So, in short... I just obey orders :))) Thanks again, Ignacio Nodal __

gtk_signal_connect order

2001-03-05 Thread Ignacio Nodal
lly want to execute first my local_delete callback, as it does, but i don't understand why it's working. Ignacio Nodal Escuela Universitaria de Informatica - ULPGC Las Palmas de G.C - SPAIN I ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Tutorial 14.4. Item Factory Example

2001-03-05 Thread Ignacio Nodal
Ctl+Q Save As -- QuitCtl+Q Is this the normal behaviour or is there something wrong in this example code? Thanks, Ignacio Nodal Suarez Escuela Universitaria de Informatica - ULPGC Las Palmas de G.C - SPAIN ___ gtk-list mailing list [EMAIL PROTE

Re: Tutorial 14.4. Item Factory Example

2001-03-05 Thread Ignacio Nodal
shows one keybinding.. the last dinamically assigned. Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: RV: Avoiding multiple child-windows

2001-02-23 Thread Ignacio Nodal
It's quite important for the project I'm working in. Thanks, Ignacio Nodal  - Original Message - From: Dugas, Alan [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Ignacio Nodal [EMAIL PROTECTED] Sent: Thursday, February 22, 2001 4:39 PM Subject: RE: Avoiding multiple child-windows You coul

Avoiding multiple child-windows

2001-02-22 Thread Ignacio Nodal
Hi, I've got a callback for a button's clicked event that creates a child window. If I click this button several times it creates each time a new window. How can i ensure that only one windows will be created? Which kind of window will be better for my child window? Thanks, Ignacio Nodal

Re: RV: How to update the current position of a widget...

2001-02-21 Thread Ignacio Nodal
a button's clicked event that creates a child window. Of course, i only want to create ONE window, but when the window is created.. if I continue clicking the button it creates everytime a new window.How can I restrict this? Ignacio Nodal Ignacio Nodal wrote: - Original Message - F

Redrawing widget (2)

2001-02-01 Thread Ignacio Nodal
event... in fact, is this possible? Ignacio Nodal ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Redrawing a widget

2001-02-01 Thread Ignacio Nodal
and becomes visible again. Salut, Sven Ok, i see.. i've already done something like that ;) What's the meaning of this "queue" in the gtk_widget_queue_draw() function? There is no specific explanation in the GTK Reference Manual. Ignacio Nodal __

Re: ProgressBar

2001-01-29 Thread Ignacio Nodal
Como dices? : Maybe you could ask in english, so some of the "gurus" could help you.. Just an advice... Good luck :) Ignacio Nodal Edson Lima wrote: Eu gostaria de saber se alguem poderia me ajudar com uma funcao progressbar, eu ainda nao sei como interagir o progress com

MDI Windows

2000-06-11 Thread Ignacio Nodal
I wonder if anyone is already working to have a MDI widget for GTK+.. :) --- Ignacio Nodal Suarez Escuela Universitaria de Informatica (ULPGC) Las Palmas de G.C. -- Spain ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman

Cannot compile GtkGLArea examples by my own

2000-06-10 Thread Ignacio Nodal
l/include -L/ usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl - lXext -lX11 -lm" Include directories seem to be right... As you can see I'm totally lost. I hope anyone out there can help me, thanks Ignacio Nodal Suarez Escuela Universitaria de Informatica (ULPGC) La

GtkGLArea libraries

2000-06-09 Thread Ignacio Nodal
I've recently installed gtkglarea-1.2.2 in my linux system, so I'm quite a newbie. When I try to run one of the examples from a different directory then the one where I made the installation, I get the following error: gcc: ../gtkgl/.libs/libgtkgl.so: file not found How can I make this