com gtk/php-gtk: Don't use deprecated things when trying to find bugs Bug still exists: test/bug_gtkiconview_toggle-cursor-item.php w

[email protected] (David Soria Parra) Thu, 20 Oct 2005 04:23:39 +0000
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    1e851f2a688da4155040bfa11bc6cbf64162e5b9
Author:    Christian Weiske <[email protected]>         Thu, 20 Oct 2005 04:23:39 +0000
Parents:   e8be333ff258d3c28f854e2bc288657a05c0e6e5
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=1e851f2a688da4155040bfa11bc6cbf64162e5b9

Log:
Don't use deprecated things when trying to find bugs
Bug still exists

Changed paths:
  M  test/bug_gtkiconview_toggle-cursor-item.phpw


Diff:
1e851f2a688da4155040bfa11bc6cbf64162e5b9
diff --git a/test/bug_gtkiconview_toggle-cursor-item.phpw b/test/bug_gtkiconview_toggle-cursor-item.phpw
index 9dd7022..b76624f 100644
--- a/test/bug_gtkiconview_toggle-cursor-item.phpw
+++ b/test/bug_gtkiconview_toggle-cursor-item.phpw
@@ -4,7 +4,7 @@
 if ($argc > 1 && $argv[1] == 'run')
 {
     $wnd = new GtkWindow();
-    $wnd->connect_object('destroy', array('gtk', 'main_quit'));
+    $wnd->connect_simple('destroy', array('gtk', 'main_quit'));
     $wnd->set_default_size(200, 200);
     
     $iv = new GtkIconView();
@@ -34,7 +34,7 @@ if ($argc > 1 && $argv[1] == 'run')
     {
         //var_dump('toggle-cursor-item');
     }
-    $iv->connect_object('toggle-cursor-item', 'toggle_cursor_item');
+    $iv->connect_simple('toggle-cursor-item', 'toggle_cursor_item');
     
     
     //let it show
@@ -56,7 +56,7 @@ if ($argc > 1 && $argv[1] == 'run')
 
 } else {
     //prepare the test
-    require_once('bugconfig.php');
+    require_once(dirname(__FILE__) . '/bugconfig.php');
     $handle = popen(PHP_EXECUTABLE . ' ' . __FILE__ . ' run 2>&1', 'r');
     $lines = '';
     while (!feof($handle)) {