cvs: pear /PEAR_Frontend_Gtk Gtk.php /PEAR_Frontend_Gtk/Gtk Info.php installer.glade
| From: | Alan Knowles | Date: | Mon, 14 Mar 2005 07:20:37 +0000 |
| Subject: | cvs: pear /PEAR_Frontend_Gtk Gtk.php /PEAR_Frontend_Gtk/Gtk Info.php installer.glade | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30259@lists.php.net to get a copy of this message | ||
alan_k Mon Mar 14 02:20:37 2005 EDT
Modified files:
/pear/PEAR_Frontend_Gtk Gtk.php
/pear/PEAR_Frontend_Gtk/Gtk Info.php installer.glade
Log:
tidy up to logging - ready for pear 1.4
http://cvs.php.net/diff.php/pear/PEAR_Frontend_Gtk/Gtk.php?r1=1.19&r2=1.20&ty=u
Index: pear/PEAR_Frontend_Gtk/Gtk.php
diff -u pear/PEAR_Frontend_Gtk/Gtk.php:1.19 pear/PEAR_Frontend_Gtk/Gtk.php:1.20
--- pear/PEAR_Frontend_Gtk/Gtk.php:1.19 Tue Feb 1 10:26:01 2005
+++ pear/PEAR_Frontend_Gtk/Gtk.php Mon Mar 14 02:20:36 2005
@@ -16,7 +16,7 @@
| Author: Alan Knowles <alan@akbkhome.com> |
+----------------------------------------------------------------------+
- $Id: Gtk.php,v 1.19 2005/02/01 15:26:01 cellog Exp $
+ $Id: Gtk.php,v 1.20 2005/03/14 07:20:36 alan_k Exp $
*/
require_once "PEAR/Frontend.php";
@@ -171,12 +171,7 @@
* @access private
*/
var $_install;
- /**
- * the class manages config tahs
- * @var object PEAR_Frontend_Gtk_Config
- * @access private
- */
- var $_install;
+
/**
* the class manages directory selection
* @var object PEAR_Frontend_Gtk_DirSelect
@@ -503,7 +498,7 @@
* @param string the command that was sent to result in this
*
*/
- function outputData($data,$command ){
+ function outputData($data,$command=''){
switch ($command) {
case 'config-show':
$this->_config->buildConfig($data['data']);
@@ -512,8 +507,9 @@
$this->_install->uninstallOutputData($data);
return;
default:
- echo "COMMAND : $command\n";
- echo "DATA: ".serialize($data)."\n";
+ $this->_info->show($data['data']);
+ //echo "COMMAND : $command\n";
+ //echo "DATA: ".print_r($data,true)."\n";
}
}
http://cvs.php.net/diff.php/pear/PEAR_Frontend_Gtk/Gtk/Info.php?r1=1.4&r2=1.5&ty=u
Index: pear/PEAR_Frontend_Gtk/Gtk/Info.php
diff -u pear/PEAR_Frontend_Gtk/Gtk/Info.php:1.4 pear/PEAR_Frontend_Gtk/Gtk/Info.php:1.5
--- pear/PEAR_Frontend_Gtk/Gtk/Info.php:1.4 Sat Jan 4 06:55:55 2003
+++ pear/PEAR_Frontend_Gtk/Gtk/Info.php Mon Mar 14 02:20:37 2005
@@ -16,7 +16,7 @@
| Author: Alan Knowles <alan@akbkhome.com> |
+----------------------------------------------------------------------+
- $Id: Info.php,v 1.4 2003/01/04 11:55:55 mj Exp $
+ $Id: Info.php,v 1.5 2005/03/14 07:20:37 alan_k Exp $
*/
/**
@@ -64,12 +64,16 @@
function show($message) {
$this->_message .= $message . "\n";
$this->window->set_title("MESSAGE");
- $this->label->set_text($this->_message);
+ $this->label->insert(NULL, NULL, NULL, $this->_message);
+ $this->label->set_line_wrap(false);
$this->window->show();
- $this->isShow = TRUE;
+ $this->isShow = TRUE;
+ while(gtk::events_pending()) gtk::main_iteration();
+
}
function close() {
+ $this->label->delete_text(0,-1);
$this->window->hide();
$this->_message = "";
return TRUE;
http://cvs.php.net/diff.php/pear/PEAR_Frontend_Gtk/Gtk/installer.glade?r1=1.10&r2=1.11&ty=u
Index: pear/PEAR_Frontend_Gtk/Gtk/installer.glade
diff -u pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.10
pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.11
--- pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.10 Thu Jun 13 05:37:02 2002
+++ pear/PEAR_Frontend_Gtk/Gtk/installer.glade Mon Mar 14 02:20:37 2005
@@ -1927,6 +1927,8 @@
<type>GTK_WINDOW_TOPLEVEL</type>
<position>GTK_WIN_POS_MOUSE</position>
<modal>True</modal>
+ <default_width>600</default_width>
+ <default_height>300</default_height>
<allow_shrink>True</allow_shrink>
<allow_grow>True</allow_grow>
<auto_shrink>False</auto_shrink>
@@ -1984,11 +1986,12 @@
</widget>
<widget>
- <class>GtkHBox</class>
- <name>hbox11</name>
- <border_width>23</border_width>
- <homogeneous>False</homogeneous>
- <spacing>8</spacing>
+ <class>GtkScrolledWindow</class>
+ <name>scrolledwindow18</name>
+ <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy>
+ <vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy>
+ <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>
+ <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy>
<child>
<padding>0</padding>
<expand>True</expand>
@@ -1996,36 +1999,11 @@
</child>
<widget>
- <class>GtkHBox</class>
- <name>_info_iconholder</name>
- <homogeneous>False</homogeneous>
- <spacing>0</spacing>
- <child>
- <padding>0</padding>
- <expand>True</expand>
- <fill>True</fill>
- </child>
-
- <widget>
- <class>Placeholder</class>
- </widget>
- </widget>
-
- <widget>
- <class>GtkLabel</class>
+ <class>GtkText</class>
<name>_info_label</name>
- <label>Prompt</label>
- <justify>GTK_JUSTIFY_LEFT</justify>
- <wrap>True</wrap>
- <xalign>0</xalign>
- <yalign>0</yalign>
- <xpad>0</xpad>
- <ypad>0</ypad>
- <child>
- <padding>0</padding>
- <expand>True</expand>
- <fill>True</fill>
- </child>
+ <sensitive>False</sensitive>
+ <editable>False</editable>
+ <text></text>
</widget>
</widget>
</widget>