Thread: glade?!!

  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    1

    glade?!!

    Hey

    I have a load of C code that I want to build front ends for. I started mucking around with glade and it seems like it will do what I want it to. I can bring boxes up with buttons and stuff on but this is about the point where I get lost

    Soooo, When you build a glade application it makes a load of .c and .h files in a dirrectorry called src or something. If I add code to main.c (which it says to do), such as:-

    printf("hello\n");

    this works, but there is nothing in the main.c about any of the buttons etc, these are all in interface.c. I want to run functions when buttons are clicked, how will I go about doing this?

    cheers

    Joe

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    84
    Go to the Signals tab of your button properties and add "clicked" signal. It will create a callback function into callbacks.c file.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The GUI I made using Glade/GTK does not end
    By thatchergrey in forum C Programming
    Replies: 4
    Last Post: 01-17-2009, 10:08 AM
  2. Replies: 1
    Last Post: 09-22-2008, 04:49 AM
  3. Help me setting c++ gtkmm glade on vista
    By eHobayyeb in forum Tech Board
    Replies: 8
    Last Post: 06-27-2007, 12:02 PM
  4. easy graphical interface develpment
    By shintaro in forum Linux Programming
    Replies: 5
    Last Post: 09-29-2005, 01:31 PM
  5. Glade
    By TrollKing in forum Linux Programming
    Replies: 2
    Last Post: 06-21-2002, 10:56 AM