March 02, 2021, 05:09:44 AM

News : Linux Help Community Forum..

Author Topic: How to use Glade Interface Designer  (Read 3616 times)

Offline Ujjwol

  • Linux Learner
  • ***
  • Posts: 54
How to use Glade Interface Designer
« on: August 01, 2007, 07:02:42 AM »
i designed the interface using Glade
but i could assign the action to click to specific buttons and others..

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: How to use Glade Interface Designer
« Reply #1 on: September 18, 2007, 10:47:23 AM »
I have worked wid GLADE 4 years back, Its like VB++ i.e Drag and drop, I am not able to remember much but you can assign click response to your button,

Here i m trying to make a simple project wid a window and button placed on it :

suppose u have added a window and drag some button on it, just go to button properties and on signals tab assign the event on click.......

and after the designing of windows , just click on  Build source code and it will create 6 or 8 files on the desired path named callsback.c callsback.o, main.c,main.o, {srry was not able to recall,}

 to make event  happen , u have to do changes in callsback.c

like it create the code somethg like this

on _button1_clicked {


In glade each object is called a widget, just write somethg like this ( By de way I m not sure as I am not able to recall)

So write somethg like dis on above block: { This code if runs perfectly .  :) , will open a new window whenever u click the button there }
window1=create_window1(); or window1=gtk_widget_create_window1();
{ Try both , as i am not sure which one is right or search google)

gtk_widget_show(window1);  { This is right , here i m assuming that u named window as window1 }

Try and after that
and executing ur project as
#./project1 {where project 1 is  name of project }

« Last Edit: September 18, 2007, 10:50:52 AM by gauravbajaj »