Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 11c5630b2c8f00f64861e0dac51a202a > files > 50

php-gtk2-2.0.1-12mdv2010.0.i586.rpm

<?php
/**
*   FIXED by Steph on 2005-10-19 20:45
*   php-gtk/ext/gtk+/gtk.overrides:1.130
*   Problem reason: Title was being free'd too early
*
*   Start the program, look at the title: Weird chars
*   Click on the "Show again" button. Different weird chars.
*/
function showDialog()
{
    $dialog = new GtkDialog('aaabcdefgh', null, 0, array( Gtk::STOCK_OK, Gtk::RESPONSE_OK, '_Show again', Gtk::RESPONSE_CANCEL));

    $hbox = new GtkHBox(false, 8);
    $dialog->vbox->pack_start($hbox, false, false, 0);

    $stock = GtkImage::new_from_stock(
            Gtk::STOCK_DIALOG_QUESTION,
            Gtk::ICON_SIZE_DIALOG);
    $hbox->pack_start($stock, false, false, 0);

    $dialog->show_all();

    $response = $dialog->run();

    $dialog->destroy();
    if ($response == Gtk::RESPONSE_CANCEL) {
        showDialog();
    }
}
showDialog();
?>