LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2004, 07:35 AM   #1
Insomnia
LQ Newbie
 
Registered: May 2004
Location: Basque Country
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
Open Window using Glade


Hi !!

I'm trying to do a program using GLADE. I have created 2 windows, in the main window, i have a button. The question is:

What code need i have to put in callbacks.c (on_button1_clicked) to open the second window??

--Thanks--
 
Old 05-25-2004, 10:36 AM   #2
Rajahuroman
Member
 
Registered: May 2004
Location: Romania; Arad
Distribution: Archlinux
Posts: 91

Rep: Reputation: 15
Try visiting
http://www.kplug.org/glade_tutorial/...l/gtemp_1.html

It is a link to the Glade tutorial which only took me about 2 hours to complete and it teaches you the answer to do what you wanted and more.
If you only want the answer to your question, here it is:

GtkWidget *about2;
about2 = create_about2 ();
gtk_widget_show (about2);

where you must replace "about2" with the name of your second window.
 
Old 05-26-2004, 02:57 AM   #3
Insomnia
LQ Newbie
 
Registered: May 2004
Location: Basque Country
Distribution: Red Hat 9
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for the anser and for the tutorial
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript - what to use rather than window.close() then window.open() davee Programming 2 04-11-2005 08:28 AM
How to create a new window using callbacks.c (Glade) skie_knite007 Programming 1 04-10-2005 12:25 PM
python/glade attach window content in gtk.fixed() a10392 Linux - Software 3 10-08-2004 09:19 AM
Glade/python Show a window. a10392 Linux - Software 0 10-06-2004 10:10 AM
How to make a window opens when clicking a button with Glade-2 Claus Programming 0 09-24-2003 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration