[nautilus] properties-window: bold and right-aligned are always FALSE
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] properties-window: bold and right-aligned are always FALSE
- Date: Wed, 11 Apr 2012 16:16:04 +0000 (UTC)
commit 12bcaf9bc93b98f12de43e459c97fd46870fee93
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Apr 11 10:56:37 2012 -0400
properties-window: bold and right-aligned are always FALSE
So we can remove them.
src/nautilus-properties-window.c | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index b4a8ada..d99105a 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -1187,8 +1187,6 @@ static GtkLabel *
attach_label (GtkGrid *grid,
GtkWidget *sibling,
const char *initial_text,
- gboolean right_aligned,
- gboolean bold,
gboolean ellipsize_text,
gboolean selectable,
gboolean mnemonic)
@@ -1198,8 +1196,7 @@ attach_label (GtkGrid *grid,
if (ellipsize_text) {
label_field = gtk_label_new (initial_text);
gtk_label_set_ellipsize (GTK_LABEL (label_field),
- right_aligned ? PANGO_ELLIPSIZE_START :
- PANGO_ELLIPSIZE_END);
+ PANGO_ELLIPSIZE_END);
} else if (mnemonic) {
label_field = gtk_label_new_with_mnemonic (initial_text);
} else {
@@ -1209,11 +1206,8 @@ attach_label (GtkGrid *grid,
if (selectable) {
gtk_label_set_selectable (GTK_LABEL (label_field), TRUE);
}
-
- if (bold) {
- eel_gtk_label_make_bold (GTK_LABEL (label_field));
- }
- gtk_misc_set_alignment (GTK_MISC (label_field), right_aligned ? 1 : 0, 0.5);
+
+ gtk_misc_set_alignment (GTK_MISC (label_field), 0, 0.5);
gtk_widget_show (label_field);
if (ellipsize_text) {
@@ -1235,7 +1229,7 @@ attach_value_label (GtkGrid *grid,
GtkWidget *sibling,
const char *initial_text)
{
- return attach_label (grid, sibling, initial_text, FALSE, FALSE, FALSE, TRUE, FALSE);
+ return attach_label (grid, sibling, initial_text, FALSE, TRUE, FALSE);
}
static GtkLabel *
@@ -1243,7 +1237,7 @@ attach_ellipsizing_value_label (GtkGrid *grid,
GtkWidget *sibling,
const char *initial_text)
{
- return attach_label (grid, sibling, initial_text, FALSE, FALSE, TRUE, TRUE, FALSE);
+ return attach_label (grid, sibling, initial_text, TRUE, TRUE, FALSE);
}
static GtkWidget*
@@ -2222,7 +2216,7 @@ static GtkLabel *
attach_title_field (GtkGrid *grid,
const char *title)
{
- return attach_label (grid, NULL, title, FALSE, FALSE, FALSE, FALSE, TRUE);
+ return attach_label (grid, NULL, title, FALSE, FALSE, TRUE);
}
#define INCONSISTENT_STATE_STRING \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]