Re: [evolution-patches] Re: Patch to remove deprecated calls (patch this time)



On Sun, 2005-06-05 at 17:22 +0100, Ross Burton wrote:
> On Sun, 2005-06-05 at 17:21 +0100, Ross Burton wrote:
> > Attached is a patch which does several things:
> 
> Balls.  Now it's attached.
> 

>         /* create the icon file entry */
>         table = glade_xml_get_widget (prop_dialog->gui,
> "table-category-properties");
> -       prop_dialog->category_icon = gnome_file_entry_new
> ("category-icon-history-id", _("Category Icon"));
> -       g_object_set (G_OBJECT (prop_dialog->category_icon),
> "use_filechooser", TRUE, NULL);
> +       prop_dialog->category_icon = gtk_file_chooser_button_new
> (_("Category Icon"), GTK_FILE_CHOOSER_ACTION_OPEN);
>         gtk_table_attach (GTK_TABLE (table),
> prop_dialog->category_icon, 1, 2, 2, 3, GTK_FILL, GTK_FILL, 3, 3);
>         gtk_widget_show (prop_dialog->category_icon);
> -       gnome_file_entry_set_modal ((GnomeFileEntry
> *)prop_dialog->category_icon, TRUE);
>  
>         return prop_dialog;

the GtkFileChooserButton should probably be in the glade file. It was
creating the GnomeFileEntry in the code because I did have a version of
Glade with non-working GNOME support, so couldn't add it.
-- 
Rodrigo Moya <rodrigo novell com>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]