[empathy] presence-chooser: Ellipsize long status messages (#576434)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] presence-chooser: Ellipsize long status messages (#576434)
- Date: Mon, 21 Dec 2009 10:29:46 +0000 (UTC)
commit 4d26e574b71c760e752a70eb5f2eb448b63f93e4
Author: Pascal Potvin <pascal potvin gmail com>
Date: Tue Dec 8 00:22:06 2009 -0500
presence-chooser: Ellipsize long status messages (#576434)
libempathy-gtk/empathy-presence-chooser.c | 1 +
libempathy-gtk/empathy-status-preset-dialog.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c
index a434936..e5826ff 100644
--- a/libempathy-gtk/empathy-presence-chooser.c
+++ b/libempathy-gtk/empathy-presence-chooser.c
@@ -857,6 +857,7 @@ empathy_presence_chooser_init (EmpathyPresenceChooser *chooser)
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (chooser), renderer,
"markup", COL_DISPLAY_MARKUP,
NULL);
+ g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
g_signal_connect (chooser, "notify::popup-shown",
G_CALLBACK (presence_chooser_popup_shown_cb), NULL);
diff --git a/libempathy-gtk/empathy-status-preset-dialog.c b/libempathy-gtk/empathy-status-preset-dialog.c
index 4a4893b..315a750 100644
--- a/libempathy-gtk/empathy-status-preset-dialog.c
+++ b/libempathy-gtk/empathy-status-preset-dialog.c
@@ -292,6 +292,8 @@ status_preset_dialog_setup_presets_treeview (EmpathyStatusPresetDialog *self)
g_object_set (renderer,
"editable", TRUE,
NULL);
+ g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+
g_signal_connect (renderer, "edited",
G_CALLBACK (status_preset_dialog_status_edited), self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]