cvs: pear /PEAR_Frontend_Gtk Gtk.php /PEAR_Frontend_Gtk/Gtk installer.glade

From: Date: Sun, 02 Jun 2002 15:58:58 +0000
Subject: cvs: pear /PEAR_Frontend_Gtk Gtk.php /PEAR_Frontend_Gtk/Gtk installer.glade
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4373@lists.php.net to get a copy of this message
alan_k Sun Jun 2 11:58:58 2002 EDT Modified files: /pear/PEAR_Frontend_Gtk Gtk.php /pear/PEAR_Frontend_Gtk/Gtk installer.glade Log: Adding font setting support to styles, making default window a bit larger, making the scrollbars in the details window 'automatic' Index: pear/PEAR_Frontend_Gtk/Gtk.php diff -u pear/PEAR_Frontend_Gtk/Gtk.php:1.11 pear/PEAR_Frontend_Gtk/Gtk.php:1.12 --- pear/PEAR_Frontend_Gtk/Gtk.php:1.11 Sun Jun 2 03:19:35 2002 +++ pear/PEAR_Frontend_Gtk/Gtk.php Sun Jun 2 11:58:58 2002 @@ -16,7 +16,7 @@ | Author: Alan Knowles <alan@akbkhome.com> | +----------------------------------------------------------------------+ - $Id: Gtk.php,v 1.11 2002/06/02 07:19:35 alan_k Exp $ + $Id: Gtk.php,v 1.12 2002/06/02 15:58:58 alan_k Exp $ */ require_once "PEAR.php"; @@ -206,6 +206,9 @@ $this->_setStyle('package_logo','#000000','#339900',TRUE); $this->_setStyle('package_logo_text','#FFFFFF','#339900'); + $this->_setFont('package_logo_text','-*-helvetica-bold-r-normal-*-*-100-*-*-p-*-iso8859-1'); + + $package_logo = &new GtkPixmap( $this->_pixmaps['pear.xpm'][0], @@ -223,6 +226,7 @@ $download_icon->show(); $this->_setStyle('downloading_logo','#000000','#339900',TRUE); $this->_setStyle('downloading_logo_text','#FFFFFF','#339900'); + $this->_setFont('downloading_logo_text','-*-helvetica-bold-r-normal-*-*-100-*-*-p-*-iso8859-1'); $this->_widget_downloading_logo_text->set_justify( GTK_JUSTIFY_LEFT ); $installer_logo = &new GtkPixmap( $this->_pixmaps['pear.xpm'][0], @@ -236,7 +240,7 @@ $this->_setStyle('config_logo','#000000','#339900',TRUE); $this->_setStyle('config_logo_text','#FFFFFF','#339900'); - + $this->_setFont('config_logo_text','-*-helvetica-bold-r-normal-*-*-100-*-*-p-*-iso8859-1'); $config_logo = &new GtkPixmap( $this->_pixmaps['pear.xpm'][0], $this->_pixmaps['pear.xpm'][1]); @@ -322,6 +326,18 @@ } + + function _setFont($widgetname,$fontname) { + $font = gdk::font_load($fontname); + $widget_fullname = "_widget_". $widgetname; + $widget = &$this->$widget_fullname; + $oldstyle = $widget->get_style(); + $newstyle = $oldstyle->copy(); + $newstyle->font = $font; + $widget->set_style($newstyle); + } + + /** * All the pixmaps from the xpm directory * @var boolean Index: pear/PEAR_Frontend_Gtk/Gtk/installer.glade diff -u pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.6 pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.7 --- pear/PEAR_Frontend_Gtk/Gtk/installer.glade:1.6 Fri May 31 02:27:10 2002 +++ pear/PEAR_Frontend_Gtk/Gtk/installer.glade Sun Jun 2 11:58:58 2002 @@ -15,7 +15,7 @@ <widget> <class>GtkWindow</class> <name>window</name> - <width>600</width> + <width>620</width> <height>460</height> <visible>False</visible> <signal> @@ -32,6 +32,8 @@ <type>GTK_WINDOW_TOPLEVEL</type> <position>GTK_WIN_POS_NONE</position> <modal>False</modal> + <default_width>620</default_width> + <default_height>480</default_height> <allow_shrink>False</allow_shrink> <allow_grow>True</allow_grow> <auto_shrink>False</auto_shrink> @@ -617,7 +619,7 @@ <name>scrolledwindow3</name> <border_width>3</border_width> <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy> - <vscrollbar_policy>GTK_POLICY_ALWAYS</vscrollbar_policy> + <vscrollbar_policy>GTK_POLICY_AUTOMATIC</vscrollbar_policy> <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy> <vupdate_policy>GTK_UPDATE_CONTINUOUS</vupdate_policy> <child> @@ -691,7 +693,7 @@ <widget> <class>GtkScrolledWindow</class> <name>scrolledwindow6</name> - <width>160</width> + <width>180</width> <hscrollbar_policy>GTK_POLICY_NEVER</hscrollbar_policy> <vscrollbar_policy>GTK_POLICY_NEVER</vscrollbar_policy> <hupdate_policy>GTK_UPDATE_CONTINUOUS</hupdate_policy>

« previous php.pear.cvs (#4373) next »