[bijiben/wip/jonathankang/import-dialog] import dialog: remove useless gtk_box_pack_start
- From: Jonathan Kang <jonathankang src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben/wip/jonathankang/import-dialog] import dialog: remove useless gtk_box_pack_start
- Date: Tue, 26 Sep 2017 10:18:51 +0000 (UTC)
commit c1e55efe06e988637ba436668ced086b7b2ae4c3
Author: Jonathan Kang <jonathan121537 gmail com>
Date: Tue Sep 26 17:51:00 2017 +0800
import dialog: remove useless gtk_box_pack_start
A widget has been added to the GtkBox using gtk_container_add(),
so there is no need to add it again using gtk_box_pack_start().
Fix that by removing the useless gtk_box_pack_start() call.
src/bjb-import-dialog.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-import-dialog.c b/src/bjb-import-dialog.c
index 68c3a60..05aaf57 100644
--- a/src/bjb-import-dialog.c
+++ b/src/bjb-import-dialog.c
@@ -308,9 +308,8 @@ add_custom (BjbImportDialog *self)
w = gtk_label_new (_("Custom Location"));
gtk_widget_set_margin_end (w, 180);
- gtk_container_add (GTK_CONTAINER (priv->cust_box), w);
gtk_widget_set_valign (w, GTK_ALIGN_CENTER);
- gtk_box_pack_start (GTK_BOX (priv->cust_box), w, TRUE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (priv->cust_box), w);
gtk_widget_set_sensitive (priv->cust_box, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]