summaryrefslogtreecommitdiff
path: root/examples/simple
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>1998-12-07 07:10:43 +0000
committerJames Henstridge <jamesh@src.gnome.org>1998-12-07 07:10:43 +0000
commitfdfea1040d6116a80e1af1b4607ef6db9a3a602d (patch)
tree731c3e58aba724ba9558ac44922e8929cdecca0f /examples/simple
parent8febc376416909915cace1078b6042685206bd55 (diff)
downloadpygtk-fdfea1040d6116a80e1af1b4607ef6db9a3a602d.tar.gz
Accept NULL arguments for adjustments of a viewport. This is the correct
1998-12-07 James Henstridge <james@daa.com.au> * generate/gtkcontainers.defs (gtk_viewport_new): Accept NULL arguments for adjustments of a viewport. This is the correct fix for Michael's other patch. * examples/*/*.py: got rid of deprecation messages. Put scrolled windows round all clists. * pyglade/build.py: Fixes a bug in scrolledwindow_new pointed out by Michael Hudson. Also made some changes so that it doesn't use any deprecated functions. * gtkmodule.c: fixed two typos pointed out by Michael Hudson 1998-12-07 James Henstridge <james@daa.com.au> * pygnome/examples/*.py: changed function calls so no deprecation messages are given.
Diffstat (limited to 'examples/simple')
-rwxr-xr-xexamples/simple/hello1.py2
-rwxr-xr-xexamples/simple/hello2.py2
-rwxr-xr-xexamples/simple/scribble.py2
-rwxr-xr-xexamples/simple/tooltip1.py4
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/simple/hello1.py b/examples/simple/hello1.py
index 60b9ab18..f99b8406 100755
--- a/examples/simple/hello1.py
+++ b/examples/simple/hello1.py
@@ -18,7 +18,7 @@ gtk_init()
window = gtk_window_new(WINDOW_TOPLEVEL)
gtk_signal_connect(window, "destroy", destroy)
-gtk_container_border_width(window, 10)
+gtk_container_set_border_width(window, 10)
button = gtk_button_new_with_label("Hello World")
gtk_signal_connect(button, "clicked", hello)
diff --git a/examples/simple/hello2.py b/examples/simple/hello2.py
index b247f523..30c2810e 100755
--- a/examples/simple/hello2.py
+++ b/examples/simple/hello2.py
@@ -15,7 +15,7 @@ def destroy(*args):
window = GtkWindow(WINDOW_TOPLEVEL)
window.connect("destroy", destroy)
-window.border_width(10)
+window.set_border_width(10)
button = GtkButton("Hello World")
button.connect("clicked", hello)
diff --git a/examples/simple/scribble.py b/examples/simple/scribble.py
index d0aee9e0..b32d5d97 100755
--- a/examples/simple/scribble.py
+++ b/examples/simple/scribble.py
@@ -48,7 +48,7 @@ def main():
win = GtkWindow()
win.set_name("Test Input")
win.connect("destroy", mainquit)
- win.border_width(5)
+ win.set_border_width(5)
vbox = GtkVBox(spacing=3)
win.add(vbox)
diff --git a/examples/simple/tooltip1.py b/examples/simple/tooltip1.py
index 93f0bcda..b0e48edc 100755
--- a/examples/simple/tooltip1.py
+++ b/examples/simple/tooltip1.py
@@ -19,7 +19,7 @@ gtk_init()
tt = gtk_tooltips_new()
gtk_tooltips_set_delay(tt, 500)
-window = gtk_object_new("GtkWindow", {
+window = gtk_object_new(gtk_window_get_type(), {
'type': WINDOW_TOPLEVEL,
'title': 'Hello World',
'allow_grow': 0,
@@ -28,7 +28,7 @@ window = gtk_object_new("GtkWindow", {
})
gtk_signal_connect(window, "destroy", destroy)
-button = gtk_object_new("GtkButton", {
+button = gtk_object_new(gtk_button_get_type(), {
'label': 'Hello World',
'parent': window,
'visible': 1