summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-02-06 13:58:28 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-02-06 13:58:28 +0000
commit15f0272672b7f75071a0b83df6779ba974b1a6c1 (patch)
tree4829c92a3a2ed73cccb9c608dac63a9b6497e32d
parent8400bc61775511ed7b4fbdeb4922f13824b2b65a (diff)
downloadlibgdata-15f0272672b7f75071a0b83df6779ba974b1a6c1.tar.gz
demos: Remove use of deprecated GTK+ API
Put the widgets in the content area — they belong there anyway.
-rw-r--r--demos/scrapbook/scrapbook.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/demos/scrapbook/scrapbook.c b/demos/scrapbook/scrapbook.c
index 2abe2d68..534dc3ff 100644
--- a/demos/scrapbook/scrapbook.c
+++ b/demos/scrapbook/scrapbook.c
@@ -604,7 +604,7 @@ static void
upload (GtkWidget *widget, ScrapData *first)
{
ScrapPUpload *self;
- GtkWidget *label, *content_area, *action_area;
+ GtkWidget *label, *content_area;
label = gtk_label_new ("Enter photo name and description");
self = first->p_upload;
@@ -613,7 +613,6 @@ upload (GtkWidget *widget, ScrapData *first)
/* dialog to get the file's name and description */
self->dialog = gtk_dialog_new();
content_area = gtk_dialog_get_content_area (GTK_DIALOG (self->dialog));
- action_area = gtk_dialog_get_action_area (GTK_DIALOG (self->dialog));
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (content_area), label, FALSE, FALSE, 0);
@@ -621,12 +620,12 @@ upload (GtkWidget *widget, ScrapData *first)
self->name = gtk_entry_new ();
g_signal_connect (self->name, "activate", G_CALLBACK (got_name), self);
gtk_widget_show (self->name);
- gtk_box_pack_start (GTK_BOX (action_area), self->name, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (content_area), self->name, TRUE, TRUE, 0);
self->description = gtk_entry_new ();
g_signal_connect (self->description, "activate", G_CALLBACK (got_name), first);
gtk_widget_show (self->description);
- gtk_box_pack_start (GTK_BOX (action_area), self->description, TRUE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (content_area), self->description, TRUE, TRUE, 0);
gtk_widget_show (self->dialog);
}