From 10256b2ff6a49d5283ca281ea0068e1acbe7686e Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 8 Aug 2004 15:33:26 +0000 Subject: R lib/widgets/ephy-ellipsizing-label.c: R 2004-08-08 Christian Persch * lib/ephy-marshal.list: * lib/widgets/Makefile.am: R lib/widgets/ephy-ellipsizing-label.c: R lib/widgets/ephy-ellipsizing-label.h: A lib/widgets/ephy-label.c: A lib/widgets/ephy-label.h: * src/ephy-notebook.c: (sync_label), (build_tab_label): * src/pdm-dialog.c: (show_cookies_properties): * src/prefs-dialog.c: (create_download_path_label), (download_path_response_cb): Kill our ellipsizing label implementation, and import GtkLabel into our prefix. * configure.in: Depend on pango 1.5.1 for ellipsisation support. --- src/ephy-notebook.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/ephy-notebook.c') diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 4eef9fcaa..475c2f9ae 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -35,7 +35,7 @@ #include "ephy-shell.h" #include "ephy-debug.h" #include "ephy-favicon-cache.h" -#include "ephy-ellipsizing-label.h" +#include "ephy-label.h" #include "ephy-spinner.h" #include "ephy-string.h" @@ -793,7 +793,7 @@ sync_label (EphyTab *tab, GParamSpec *pspec, GtkWidget *proxy) if (title) { - ephy_ellipsizing_label_set_text (EPHY_ELLIPSIZING_LABEL (label), title); + ephy_label_set_text (EPHY_LABEL (label), title); gtk_tooltips_set_tip (tips, ebox, title, NULL); } } @@ -885,9 +885,8 @@ build_tab_label (EphyNotebook *nb, EphyTab *tab) gtk_box_pack_start (GTK_BOX (label_hbox), icon, FALSE, FALSE, 0); /* setup label */ - label = ephy_ellipsizing_label_new (""); - ephy_ellipsizing_label_set_mode (EPHY_ELLIPSIZING_LABEL (label), - EPHY_ELLIPSIZE_START); + label = ephy_label_new (""); + ephy_label_set_ellipsize (EPHY_LABEL (label), PANGO_ELLIPSIZE_END); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_misc_set_padding (GTK_MISC (label), 0, 0); gtk_box_pack_start (GTK_BOX (label_hbox), label, TRUE, TRUE, 0); -- cgit