Updating branch refs/heads/master to 79730cb7745207fba81da490a47de27242b0e176 (commit) from 96754ea5b1976bc181af9521f79b235f36f6fb6e (commit)
commit 79730cb7745207fba81da490a47de27242b0e176 Author: Stephan Arts <step...@xfce.org> Date: Sat Mar 3 12:06:09 2012 +0100 Set Ellipsize mode to warning-label src/main_window.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main_window.c b/src/main_window.c index e42e2d6..3f962b1 100644 --- a/src/main_window.c +++ b/src/main_window.c @@ -622,6 +622,9 @@ rstto_main_window_init (RsttoMainWindow *window) window->priv->position_menu = gtk_ui_manager_get_widget (window->priv->ui_manager, "/navigation-toolbar-menu"); window->priv->warning = gtk_info_bar_new(); window->priv->warning_label = gtk_label_new(NULL); + gtk_label_set_ellipsize ( + GTK_LABEL (window->priv->warning_label), + PANGO_ELLIPSIZE_END); info_bar_content_area = gtk_info_bar_get_content_area ( GTK_INFO_BAR (window->priv->warning)); @@ -1141,6 +1144,9 @@ rstto_main_window_update_statusbar (RsttoMainWindow *window) g_free (status); status = tmp_status; gtk_label_set_text (GTK_LABEL(window->priv->warning_label), error->message); + gtk_widget_set_tooltip_text( + window->priv->warning_label, + error->message); gtk_widget_show (window->priv->warning); } else @@ -3250,6 +3256,7 @@ cb_rstto_main_window_close ( window->priv->image_list, NULL, NULL); + gtk_widget_hide (window->priv->warning); } /** _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits