Re: gtkmm-list Digest, Vol 96, Issue 6
- From: nalin4linux77 linux <nalin4linux77 gmail com>
- To: gtkmm-list gnome org
- Subject: Re: gtkmm-list Digest, Vol 96, Issue 6
- Date: Wed, 11 Apr 2012 20:07:16 +0530
Dear friends how can i connect signals
hear "exit" is the siganal from glade and how can i connect it ??? please help me
#include <iostream>
#include <gtk/gtk.h>
using namespace std;
void exit()
{
gtk_main_quit();
}
int main(int argc, char ** argv)
{
gtk_init(&argc, &argv);
GtkBuilder* l_BuilderInterface = gtk_builder_new();
gtk_builder_add_from_file(l_BuilderInterface, "ui.glade", NULL);
GtkWidget* window = GTK_WIDGET(gtk_builder_get_object(l_BuilderInterface, "window"));
// Not works gtk_builder_connect_signals(l_BuilderInterface,"exit",exit());
gtk_widget_show(window);
gtk_main();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]