27 lines
6.4 KiB
Text
27 lines
6.4 KiB
Text
version=pmwiki-1.0.5
|
|
newline=²
|
|
text=This comment was taken directly from²http://gtk.php.net/manual/en/glade.gladexml.php²²Hi, there is a way to use the gtkhtml component with glade / phpgtk.²²In glade, create a [[ManPHPGTK:gtk.gtkscrolledwindow GtkScrolledWindow]] and add a Custom component with "gtk_html_new" as creation function name.²² The following php code produced a segmentation fault, on my debian :(²²[[include:Main/CodeTable]]²// $html is some text variable that²// contains html code²$html = "<html><body>foo</body></html>";²²// generate a glade layout from²// the glade xml file²$layout =& new GladeXml("test.glade");²²// retrieve the Custom component named "htmlcomponent"²$gtkhtml =& $layout->get_widget("htmlcomponent");²²// gtkhtml component MUST have a content²// or the program will generate a²// segmentation fault (another one yes)²$stream =& $gtkhtml->begin();²²$gtkhtml -> write ( $stream, $html, strlen($html) );²²$gtkhtml -> end ( $stream, GTK_HTML_STREAM_OK );²[[include:Main/CodeTableEnd]]²²To get rid of this segfault, I removed the [[ManPHPGTK:gtk.gtkviewport GtkViewPort]] widget from the produced glade xml (I found no way to remove it from the glade interface).²²The glade file is alway usuable within glade so you can modify the interface...²²I hope this will help some coders :)²²For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.
|
|
time=1117377452
|
|
diff:1092907148:1092907148:=1,40c1²< This comment was taken directly from²< http://gtk.php.net/manual/en/glade.gladexml.php²< ²< Hi, there is a way to use the gtkhtml component with glade / phpgtk.²< ²< In glade, create a [[ManPHPGTK:gtk.gtkscrolledwindow GtkScrolledWindow]] and add a Custom component with "gtk_html_new" as creation function name.²< ²< The following php code produce a segmentation fault, on my debian :(²< ²< [[include:Main/CodeTable]]²< // $html is some text variable that²< // contains html code²< $html = "<html><body>foo</body></html>";²< ²< // generate a glade layout from²< // the glade xml file²< $layout =& new GladeXml("test.glade");²< ²< // retrieve the Custom component named "htmlcomponent"²< $gtkhtml =& $layout->get_widget("htmlcomponent");²< ²< // gtkhtml component MUST have a content²< // or the program will generate a²< // segmentation fault (another one yes)²< $stream =& $gtkhtml->begin();²< ²< $gtkhtml -> write ( $stream, $html, strlen($html) );²< ²< $gtkhtml -> end ( $stream, GTK_HTML_STREAM_OK );²< [[include:Main/CodeTableEnd]]²< ²< To get rid of this segfault, I removed the [[ManPHPGTK:gtk.gtkviewport GtkViewPort]] widget from the produced glade xml (I found no way to remove it from the glade interface).²< ²< The glade file is alway usuable within glade so you can modify the interface...²< ²< I hope this will help some coders :)²< ²< For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²< ²< yota²\ No newline at end of file²---²> Describe GtkHtmlAndGlade here.²\ No newline at end of file²
|
|
author=Scott
|
|
author:1092907148=nathan
|
|
host:1092907148=82.120.23.54
|
|
name=CodeHints.GtkHtmlAndGlade
|
|
host=68.199.17.225
|
|
agent=Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2
|
|
rev=6
|
|
diff:1093746196:1092907148:minor=8c8²< The following php code produced a segmentation fault, on my debian :(²---²> The following php code produce a segmentation fault, on my debian :(²
|
|
author:1093746196=Henry Slater
|
|
host:1093746196=81.76.66.207
|
|
diff:1103972778:1093746196:=39c39²< [[http://recovery.yculblog.com/ _]] [[http://www.yourblog.org/Blogger/200412/CKXP_77071.html _]] [[http://www.yourblog.org/Blogger/200412/CKXP_74547.html _]] [[http://recovery.blogdriver.com/recovery/index.html _]]²---²> ²
|
|
author:1103972778=
|
|
host:1103972778=210.90.223.227
|
|
diff:1104153107:1103972778:=38c38,40²< For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²\ No newline at end of file²---²> For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²> [[http://recovery.yculblog.com/ _]] [[http://www.yourblog.org/Blogger/200412/CKXP_77071.html _]] [[http://www.yourblog.org/Blogger/200412/CKXP_74547.html _]] [[http://recovery.blogdriver.com/recovery/index.html _]]²> yota²\ No newline at end of file²
|
|
author:1104153107=scott
|
|
host:1104153107=68.167.115.34
|
|
diff:1117219160:1104153107:=38,52c38²< For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²< ²< ==Links==²< ²< [[http://valium1.dezigner.ru/ valium]]²< [[http://vicodin-buy.bigsitecity.com/ buy vicodin online]]²< [[http://fioricet-online1.bigsitecity.com/ buy fioricet]]²< [[http://steroids1.bigsitecity.com/ buy hydrocodone]]²< [[http://hydrocodone1.bigsitecity.com/ anabolic steroid]]²< [[http://phentermine1.bigsitecity.com/ purchase phentermine]]²< [[http://phentermine-online1.bigsitecity.com/ buy phentermine online]]²< [[http://buy-phentermine1.bigsitecity.com/ cheapest phentermine cod]]²< [[http://cheap-phentermine1.bigsitecity.com/ phentermine pharmacy]]²< [[http://cheap-phentermine-online1.bigsitecity.com/ buy cheap phentermine]]²< [[http://buy-phentermine-online2.bigsitecity.com/ phentermine online pharmacy]]²\ No newline at end of file²---²> For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²\ No newline at end of file²
|
|
author:1117219160=e
|
|
host:1117219160=62.33.112.3
|
|
diff:1117377452:1117219160:=38c38,52²< For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²\ No newline at end of file²---²> For a full list of gtkhtml callbacks and functions, refers to gtkhtml.h file in gtkhtml-dev packages.²> ²> ==Links==²> ²> [[http://valium1.dezigner.ru/ valium]]²> [[http://vicodin-buy.bigsitecity.com/ buy vicodin online]]²> [[http://fioricet-online1.bigsitecity.com/ buy fioricet]]²> [[http://steroids1.bigsitecity.com/ buy hydrocodone]]²> [[http://hydrocodone1.bigsitecity.com/ anabolic steroid]]²> [[http://phentermine1.bigsitecity.com/ purchase phentermine]]²> [[http://phentermine-online1.bigsitecity.com/ buy phentermine online]]²> [[http://buy-phentermine1.bigsitecity.com/ cheapest phentermine cod]]²> [[http://cheap-phentermine1.bigsitecity.com/ phentermine pharmacy]]²> [[http://cheap-phentermine-online1.bigsitecity.com/ buy cheap phentermine]]²> [[http://buy-phentermine-online2.bigsitecity.com/ phentermine online pharmacy]]²\ No newline at end of file²
|
|
author:1117377452=Scott
|
|
host:1117377452=68.199.17.225
|