![]() ![]()
$open -> connect_simple ( 'activate' ,array( $this, 'menuOptionClicked' ), "open" ) $quit -> connect_simple ( 'activate' ,array( $this, 'menuOptionClicked' ), "quit" ) $this -> menuSaveItem = new GtkMenuItem ( "Save As." ) $this -> window -> set_focus ( $this -> textView ) $this -> init_vbox -> pack_start ( $gtkScrolledWindow ) $gtkScrolledWindow -> set_policy ( Gtk :: POLICY_AUTOMATIC, Gtk :: POLICY_AUTOMATIC ) $gtkScrolledWindow -> add ( $this -> textView ) $gtkScrolledWindow = new GtkScrolledWindow () $this -> quitBtn -> connect_simple ( 'clicked' ,array( $this, "menuButtonClicked" ), "quit" ) $this -> saveBtn -> connect_simple ( 'clicked' ,array( $this, "menuButtonClicked" ), "save" ) $this -> openBtn -> connect_simple ( 'clicked' ,array( $this, "menuButtonClicked" ), "open" ) $this -> init_hbox -> pack_start ( $this -> quitBtn, FALSE, FALSE ) $this -> init_hbox -> pack_start (new GtkHBox ()) $this -> init_hbox -> pack_start ( $this -> saveBtn, FALSE, FALSE ) $this -> init_hbox -> pack_start ( $this -> openBtn, FALSE, FALSE ) $this -> init_vbox -> pack_start ( $this -> init_hbox, FALSE, FALSE ) $this -> window -> add ( $this -> init_vbox ) $this -> window -> connect_simple ( 'delete-event' ,array( $this, "confirmMainQuit" )) // delete-event is used instead of destroy as a BOOL value can be returned from the handler method to prevent the window being destroyed ![]() $this -> window -> set_title ( $this -> default_window_title ) $this -> default_window_title = "PHP-GTK Text Editor - Cross Platform!" default window title - title may have additional text appended later create the window, set the title, default size and destroy action $this -> quitBtn = new GtkButton ( "Quit" ) $this -> saveBtn = new GtkButton ( "Save As." ) $this -> openBtn = new GtkButton ( "Open" ) buildconf, you'll come across this error: configure: error: PHP-GTK 2.x requires GLib 2.6.0 or higher. #Best php ide ubuntu 12.04 downloadIf you simply download PHP-GTK (either the latest via SVN or downloading the source via the PHP-GTK website) without installing the necessary dependencies above, when executing. I do want to point out that on the PHP-GTK website it states the latest PHP-GTK source is available on the SVN server, but the latest source is available via git - which is why we need to have git installed so we can download the php-gtk source over git.Ĭommon errors occurring with PHP-GTK installation. configure commands prior to installing PHP-GTK.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |