summaryrefslogtreecommitdiff
path: root/demos/scrapbook/scrapbook.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/scrapbook/scrapbook.c')
-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);
}