Skip to content

Instantly share code, notes, and snippets.

@zedtux
Created January 12, 2014 02:43
Show Gist options
  • Save zedtux/8380066 to your computer and use it in GitHub Desktop.
Save zedtux/8380066 to your computer and use it in GitHub Desktop.
Créer simplement une interface GTK en C++ - Mise a jour du hello.h
#ifndef HELLO_H
#define HELLO_H
#include <iostream>
#include <gtkmm.h>
#include <libglademm.h>
class Hello : public Gtk::Window
{
public:
Hello(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
virtual ~Hello();
private:
//~ Ici on ajoute, en privé, la méthode, qui ne doit rien renvoyer, qui sera appelé
void on_button_quit();
Glib::RefPtr m_refXmlGlade;
//~ Voici notre bouton GTK !
Gtk::Button * m_buttonQuit;
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment