summaryrefslogtreecommitdiff
path: root/examples/selection
diff options
context:
space:
mode:
authorGMT 1999 Tony Gale <gale@gtk.org>1999-01-28 10:35:40 +0000
committerTony Gale <gale@src.gnome.org>1999-01-28 10:35:40 +0000
commita2dafdfc88dbaaaf67c3971372da4a5b8b63ec2b (patch)
treeb16f8940a58bbe8d25bcf5f3112fbcb3c682952b /examples/selection
parenta70005873773b8b3214b2a54818990db517fbaa9 (diff)
downloadgtk+-a2dafdfc88dbaaaf67c3971372da4a5b8b63ec2b.tar.gz
- Replace all uses of deprecated functions. - Replace menufactory example
Thu Jan 28 10:16:28 GMT 1999 Tony Gale <gale@gtk.org> * docs/gtk_tut.sgml: - Replace all uses of deprecated functions. - Replace menufactory example with itemfactory example from Nick Scott <mendigo@geocities.com> - Minor bug fixes in the examples.
Diffstat (limited to 'examples/selection')
-rw-r--r--examples/selection/gettargets.c2
-rw-r--r--examples/selection/setselection.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/selection/gettargets.c b/examples/selection/gettargets.c
index 433cab21ee..fa183b5973 100644
--- a/examples/selection/gettargets.c
+++ b/examples/selection/gettargets.c
@@ -72,7 +72,7 @@ main (int argc, char *argv[])
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), "Event Box");
- gtk_container_border_width (GTK_CONTAINER (window), 10);
+ gtk_container_set_border_width (GTK_CONTAINER (window), 10);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (gtk_exit), NULL);
diff --git a/examples/selection/setselection.c b/examples/selection/setselection.c
index 2f8532b10b..fcde84b2d0 100644
--- a/examples/selection/setselection.c
+++ b/examples/selection/setselection.c
@@ -15,7 +15,7 @@ selection_toggled (GtkWidget *widget, gint *have_selection)
/* if claiming the selection failed, we return the button to
the out state */
if (!*have_selection)
- gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(widget), FALSE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(widget), FALSE);
}
else
{
@@ -37,7 +37,7 @@ selection_clear (GtkWidget *widget, GdkEventSelection *event,
gint *have_selection)
{
*have_selection = FALSE;
- gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(widget), FALSE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(widget), FALSE);
return TRUE;
}
@@ -75,7 +75,7 @@ main (int argc, char *argv[])
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), "Event Box");
- gtk_container_border_width (GTK_CONTAINER (window), 10);
+ gtk_container_set_border_width (GTK_CONTAINER (window), 10);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (gtk_exit), NULL);