Closing Main window with out Closing the child window

2006-03-10 Thread Prabhakar Muthuswamy
All I have a main window (which is a login screen) after I am authenticated this main window should go away and other window should pop up. As of now I am able to pop the second window but the main window is hiding behind the second window. Is there an API which would allow me to close the

Re: Closing Main window with out Closing the child window

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 09:51:03AM -0500, Prabhakar Muthuswamy wrote: I have a main window (which is a login screen) after I am authenticated this main window should go away and other window should pop up. As of now I am able to pop the second window but the main window is hiding behind

reinitialize application

2006-03-10 Thread Andreas Kotowicz
I have a main.c like this: int main (int argc, char *argv[]) { GtkWidget *window1; window1 = create_window1 (); gtk_widget_show (window1); gtk_main (); return 0; } and I have some callbacks in callbacks.c which modify some labels. now I want to create a button clear which deletes all

RE: Closing Main window with out Closing the child window

2006-03-10 Thread Wallace Owen
On Fri, 2006-03-10 at 11:16 -0500, Prabhakar Muthuswamy wrote: Thanks Yeti, How do I destroy first the firstwindow when I don't have that pointer when I pop up the second window? By default glade creates the first window pointer in main.c. In my callbacks.c I don't have access to this pointer

Re: reinitialize application

2006-03-10 Thread Nickolai Dobrynin
Andreas, I highly recommend that you go through the GTK+ tutorial first. This will give you some basic grounds on how GTK+ works. Just a few remarks here: 1. You probably want to use gtk_widget_show_all in your 'main' function, rather than just 'gtk_widget_show'. 2. If I understand you

Re: reinitialize application

2006-03-10 Thread Andreas Kotowicz
Hi, gtk_init( argc, argv); /* you do have this somewhere right? */ sorry, I forgot to post a bit of my main.c. so here's the complete one: int main (int argc, char *argv[]) { GtkWidget *window1; gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE,

Re: reinitialize application

2006-03-10 Thread Andreas Kotowicz
On Fri, 2006-03-10 at 20:19 +0100, David Necas (Yeti) wrote: On Fri, Mar 10, 2006 at 07:40:25PM +0100, Andreas Kotowicz wrote: so what I'm looking after is a way to clear all those entry fields any other variables which might have changed during the running program. so just reinitialize

Re: reinitialize application

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 08:57:09PM +0100, Andreas Kotowicz wrote: I tried the destroy and construct way: void on_button4_clicked (GtkButton *button, gpointer user_data) {

Re: selected text is PRIMARY?

2006-03-10 Thread James Henstridge
Yevgen Muntyan wrote: Brian J. Tarricone wrote: mozilla allows user having multiple selections, and it doesn't clear selection when you select something else. It's not buggy, it's correct (not for everyone, of course). Not according to accepted practice. At the very least (not even

Re: selected text is PRIMARY?

2006-03-10 Thread Yevgen Muntyan
James Henstridge wrote: The classic PRIMARY selection model used in X only really works if all apps follow the rules. That is, only the text in the PRIMARY selection is displayed as selected. If some apps ignore the rules then you can end up with two pieces of text that appear to be selected.

Re: Gtk+ print support - request for feedback

2006-03-10 Thread Jody Goldberg
On Fri, Mar 10, 2006 at 10:31:10AM +0100, Alexander Larsson wrote: On Thu, 2006-03-09 at 13:25 -0600, Albert Chin wrote: On Fri, Mar 03, 2006 at 04:58:39PM +0100, Alexander Larsson wrote: The code consists of several parts. First we have the highlevel portable print API that most apps are

Re: Gtk+ print support - request for feedback

2006-03-10 Thread Norm Jacobs
Jody Goldberg wrote: On Fri, Mar 10, 2006 at 10:31:10AM +0100, Alexander Larsson wrote: On Thu, 2006-03-09 at 13:25 -0600, Albert Chin wrote: On Fri, Mar 03, 2006 at 04:58:39PM +0100, Alexander Larsson wrote: The code consists of several parts. First we have the highlevel

g_object_new(G_TYPE_OBJECT, NULL)

2006-03-10 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
Everyone, is there any reason why anyone would want to instantiate actual GObjects using g_object_new(G_TYPE_OBJECT, NULL)? As a follow-up to that question, was there a design decision in mind when not flagging GObject G_TYPE_FLAG_ABSTRACT to prevent this? What can one say to someone who wishes

TextView problem on Win32

2006-03-10 Thread Andrew E. Makeev
Good day. GtkTextView widget has redrawing problems on Win32 platform. Configuration: Gtk+-2.4.14, Windows XP professional, MinGW. See attached testcase and screenshot. Compilation string: gcc -mms-bitfields -o test Win32Textbuffer.c `pkg-config --cflags --libs gtk+2.0` Description.

TextView problem on Win32

2006-03-10 Thread Tor Lillqvist
Andrew E. Makeev writes: Gtk+-2.4.14 That's rather old. Your program behaves better when running against a current GTK+ 2.8. --tml ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

keyhandling with focus widgets and modifier-less accelerators

2006-03-10 Thread Paul Davis
i think that the comment inside this function speaks for itself. posted just in case other people find it useful. of course, there is always the possibility that GTK should do something like this by default. bool key_press_focus_accelerator_handler (Gtk::Window window,

Re: keyhandling with focus widgets and modifier-less accelerators

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 09:26:51AM -0500, Paul Davis wrote: i think that the comment inside this function speaks for itself. posted just in case other people find it useful. of course, there is always the possibility that GTK should do something like this by default. bool

Re: keyhandling with focus widgets and modifier-less accelerators

2006-03-10 Thread Paul Davis
On Fri, 2006-03-10 at 15:33 +0100, David Necas (Yeti) wrote: On Fri, Mar 10, 2006 at 09:26:51AM -0500, Paul Davis wrote: i think that the comment inside this function speaks for itself. posted just in case other people find it useful. of course, there is always the possibility that GTK

Re: Non-editable GtkComboBoxEntry?

2006-03-10 Thread Matthias Clasen
On 3/9/06, Murray Cumming [EMAIL PROTECTED] wrote: Is there any good way to make a GtkComboBoxEntry non-editable? Calling gtk_entry_set_editable() on the child GtkEntry isn't enough. The user can still change the contents of the GtkEntry by choosing something from the drop-down menu.

Footnote callers

2006-03-10 Thread Teus Benschop
Hello, Does anybody how to tackle the following matter? Bibledit is an editor and can show footnotes etc. The footnote caller is the character of sequence of characters that is put in the text in a smaller font scale and a bit risen, as usually is done in editors. This is done by applying a