diff options
author | Pascal Potvin <pascal.potvin@gmail.com> | 2009-12-08 13:22:06 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-21 18:29:32 +0800 |
commit | 4d26e574b71c760e752a70eb5f2eb448b63f93e4 (patch) | |
tree | b00c85a0fe6de365d8b7bfb2a43fe29eaa395755 | |
parent | 4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52 (diff) | |
download | gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.tar gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.tar.gz gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.tar.bz2 gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.tar.lz gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.tar.xz gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.tar.zst gsoc2013-empathy-4d26e574b71c760e752a70eb5f2eb448b63f93e4.zip |
presence-chooser: Ellipsize long status messages (#576434)
-rw-r--r-- | libempathy-gtk/empathy-presence-chooser.c | 1 | ||||
-rw-r--r-- | 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 a434936e9..e5826ff76 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 4a4893b57..315a750a5 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); } |