diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-08-08 23:33:26 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-08-08 23:33:26 +0800 |
commit | 10256b2ff6a49d5283ca281ea0068e1acbe7686e (patch) | |
tree | d6738bead4c91e36a16a2a0e325749d216711cfe /src/prefs-dialog.c | |
parent | d368e97a37dbd9ed2163f0a446fa3723ed57c732 (diff) | |
download | gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.tar gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.tar.gz gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.tar.bz2 gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.tar.lz gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.tar.xz gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.tar.zst gsoc2013-epiphany-10256b2ff6a49d5283ca281ea0068e1acbe7686e.zip |
R lib/widgets/ephy-ellipsizing-label.c: R
2004-08-08 Christian Persch <chpe@cvs.gnome.org>
* 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.
Diffstat (limited to 'src/prefs-dialog.c')
-rw-r--r-- | src/prefs-dialog.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/prefs-dialog.c b/src/prefs-dialog.c index 4d0eff0f1..560989675 100644 --- a/src/prefs-dialog.c +++ b/src/prefs-dialog.c @@ -37,13 +37,14 @@ #include "ephy-langs.h" #include "ephy-encodings.h" #include "ephy-debug.h" -#include "ephy-ellipsizing-label.h" +#include "ephy-label.h" #include "ephy-file-chooser.h" #include "ephy-file-helpers.h" #include "ephy-tree-model-node.h" #include "ephy-tree-model-sort.h" #include <glib/gi18n.h> +#include <gtk/gtklabel.h> #include <gtk/gtkcellrenderertext.h> #include <gtk/gtkcelllayout.h> #include <gtk/gtktreeselection.h> @@ -1133,9 +1134,8 @@ create_download_path_label (EphyDialog *dialog) button = ephy_dialog_get_control (dialog, properties[DOWNLOAD_PATH_BUTTON_PROP].id); dir = get_download_button_label (); - label = ephy_ellipsizing_label_new (dir); - ephy_ellipsizing_label_set_mode ((EphyEllipsizingLabel*)label, - EPHY_ELLIPSIZE_START); + label = ephy_label_new (dir); + ephy_label_set_ellipsize (EPHY_LABEL (label), PANGO_ELLIPSIZE_START); gtk_container_add (GTK_CONTAINER (button), label); g_free (dir); gtk_widget_show (label); @@ -1296,8 +1296,7 @@ download_path_response_cb (GtkDialog *fc, gint response, EphyDialog *dialog) button = ephy_dialog_get_control (dialog, properties[DOWNLOAD_PATH_BUTTON_PROP].id); label = get_download_button_label (); - ephy_ellipsizing_label_set_text ((EphyEllipsizingLabel*) GTK_BIN (button)->child, - label); + ephy_label_set_text (EPHY_LABEL (GTK_BIN (button)->child), label); g_free (dir); g_free (label); |