From f35ae03a662ed7fb2bc13dc806a15383c72c64d7 Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 8 Feb 2014 09:53:56 -0500 Subject: Build with GTK_DISABLE_DEPRECATED --- src/fe-gtk/gtkutil.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/fe-gtk') diff --git a/src/fe-gtk/gtkutil.c b/src/fe-gtk/gtkutil.c index 3bb247a2..50a85e2f 100644 --- a/src/fe-gtk/gtkutil.c +++ b/src/fe-gtk/gtkutil.c @@ -491,10 +491,6 @@ gtkutil_button (GtkWidget *box, char *stock, char *tip, void *callback, gtk_widget_show (bbox); img = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_MENU); - if (strcmp (stock, GTK_STOCK_GOTO_LAST) == 0) - { - gtk_widget_set_usize (img, 10, 6); - } gtk_container_add (GTK_CONTAINER (bbox), img); gtk_widget_show (img); gtk_box_pack_start (GTK_BOX (box), wid, 0, 0, 0); @@ -521,7 +517,8 @@ GtkWidget * gtkutil_entry_new (int max, GtkWidget * box, void *callback, gpointer userdata) { - GtkWidget *entry = gtk_entry_new_with_max_length (max); + GtkWidget *entry = gtk_entry_new (); + gtk_entry_set_max_length (GTK_ENTRY (entry), max); gtk_container_add (GTK_CONTAINER (box), entry); if (callback) g_signal_connect (G_OBJECT (entry), "changed", -- cgit 1.4.1