[gtk/matthiasc/for-master: 1/4] gtk-demo: Remove empty row in the pickers demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 1/4] gtk-demo: Remove empty row in the pickers demo
- Date: Fri, 4 Dec 2020 03:31:53 +0000 (UTC)
commit e035baee8a4765a5b5c26bcd175c13e4d03dc0f6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Dec 3 19:24:19 2020 -0500
gtk-demo: Remove empty row in the pickers demo
The file chooser button is gone.
demos/gtk-demo/pickers.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/demos/gtk-demo/pickers.c b/demos/gtk-demo/pickers.c
index e5f6ef99d4..635a7f9149 100644
--- a/demos/gtk-demo/pickers.c
+++ b/demos/gtk-demo/pickers.c
@@ -1,9 +1,8 @@
/* Pickers
- * #Keywords: GtkColorChooser, GtkFontChooser, GtkFileChooser,
- * #Keywords: GtkApplicationChooser
+ * #Keywords: GtkColorChooser, GtkFontChooser, GtkApplicationChooser
*
* These widgets are mainly intended for use in preference dialogs.
- * They allow to select colors, fonts, files, directories and applications.
+ * They allow to select colors, fonts, directories and applications.
*
* This demo shows both the default appearance for these dialogs,
* as well as some of the customizations that are possible.
@@ -120,20 +119,14 @@ do_pickers (GtkWidget *do_widget)
gtk_grid_attach (GTK_GRID (table), picker, 2, 1, 1, 1);
- label = gtk_label_new ("File:");
- gtk_widget_set_halign (label, GTK_ALIGN_START);
- gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
- gtk_widget_set_hexpand (label, TRUE);
- gtk_grid_attach (GTK_GRID (table), label, 0, 2, 1, 1);
-
label = gtk_label_new ("Mail:");
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_widget_set_hexpand (label, TRUE);
picker = gtk_app_chooser_button_new ("x-scheme-handler/mailto");
gtk_app_chooser_button_set_show_dialog_item (GTK_APP_CHOOSER_BUTTON (picker), TRUE);
- gtk_grid_attach (GTK_GRID (table), label, 0, 4, 1, 1);
- gtk_grid_attach (GTK_GRID (table), picker, 1, 4, 1, 1);
+ gtk_grid_attach (GTK_GRID (table), label, 0, 3, 1, 1);
+ gtk_grid_attach (GTK_GRID (table), picker, 1, 3, 1, 1);
}
if (!gtk_widget_get_visible (window))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]