Esempio n. 1
0
 function prop_clicked($button, $ptr_entry)
 {
     $dialog = new GtkDialog('Escolha uma data ...');
     $pixbuf = $dialog->render_icon(Gtk::STOCK_PROPERTIES, Gtk::ICON_SIZE_BUTTON);
     $dialog->set_icon($pixbuf);
     $dialog->vbox->pack_start($calendar = new GtkCalendar());
     $calendar->connect('day-selected-double-click', array($this, 'calendar_double_click'), $dialog, $ptr_entry);
     $calendar->show();
     $dialog->run();
     $dialog->destroy();
 }