diff options
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); |