Re: gtkmm-list Digest, Vol 96, Issue 6
- From: Kjell Ahlstedt <kjell ahlstedt bredband net>
- To: nalin4linux77 linux <nalin4linux77 gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: gtkmm-list Digest, Vol 96, Issue 6
- Date: Thu, 12 Apr 2012 19:20:38 +0200
Your example is in Gtk+, not Gtkmm. You should ask this question on a
gtk+ list. Probably gtk-app-devel-list is most appropriate.
Regards
Kjell
2012-04-11 16:37, nalin4linux77 linux skrev:
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]