[gtk/matthiasc/for-master] mountoperation: Some cosmetics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] mountoperation: Some cosmetics
- Date: Fri, 16 Apr 2021 23:35:36 +0000 (UTC)
commit 0d308d09f3d06133f64130d2fe0bec15615dfc12
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 16 19:05:14 2021 -0400
mountoperation: Some cosmetics
Fix up the dialog minimally.
gtk/gtkmountoperation.c | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index 0eb1379e97..37d81caaea 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -580,12 +580,11 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
GtkWidget *hbox, *main_vbox, *icon;
GtkWidget *grid;
GtkWidget *label;
- GtkWidget *content_area, *action_area;
+ GtkWidget *content_area;
gboolean can_anonymous;
guint rows;
char *primary;
const char *secondary = NULL;
- PangoAttrList *attrs;
gboolean use_header;
priv = operation->priv;
@@ -602,11 +601,6 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
priv->dialog = dialog;
content_area = gtk_dialog_get_content_area (dialog);
- action_area = gtk_dialog_get_action_area (dialog);
-
- /* Set the dialog up with HIG properties */
- gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
- gtk_box_set_spacing (GTK_BOX (action_area), 6);
gtk_window_set_resizable (window, FALSE);
gtk_window_set_title (window, "");
@@ -621,6 +615,12 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
/* Build contents */
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
+ g_object_set (hbox,
+ "margin-start", 12,
+ "margin-end", 12,
+ "margin-top", 12,
+ "margin-bottom", 12,
+ NULL);
gtk_box_append (GTK_BOX (content_area), hbox);
icon = gtk_image_new_from_icon_name ("dialog-password");
@@ -646,10 +646,7 @@ gtk_mount_operation_ask_password_do_gtk (GtkMountOperation *operation,
gtk_label_set_wrap (GTK_LABEL (label), TRUE);
gtk_box_append (GTK_BOX (main_vbox), GTK_WIDGET (label));
g_free (primary);
- attrs = pango_attr_list_new ();
- pango_attr_list_insert (attrs, pango_attr_weight_new (PANGO_WEIGHT_BOLD));
- gtk_label_set_attributes (GTK_LABEL (label), attrs);
- pango_attr_list_unref (attrs);
+ gtk_widget_add_css_class (label, "title-3");
if (secondary != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]