[yocto] [matchbox-config-gtk][PATCH 1/1] Port to Gtk+3

Burton, Ross ross.burton at intel.com
Fri Apr 29 08:36:40 PDT 2016


Hi,

mb-appearance.c: In function 'new_frame':
mb-appearance.c:352:3: warning: 'gtk_alignment_get_type' is deprecated
[-Wdeprecated-declarations]
   *align = g_object_new (GTK_TYPE_ALIGNMENT,
   ^
In file included from /usr/include/gtk-3.0/gtk/gtk.h:248:0,
                 from mb-appearance.c:28:
/usr/include/gtk-3.0/gtk/deprecated/gtkalignment.h:77:12: note: declared
here
 GType      gtk_alignment_get_type   (void) G_GNUC_CONST;
            ^
mb-appearance.c: In function 'main':
mb-appearance.c:385:41: warning: 'GtkStock' is deprecated
[-Wdeprecated-declarations]
                                         GTK_STOCK_CLOSE,
GTK_RESPONSE_CLOSE,
                                         ^

Should be simple to fix?

Ross

On 29 April 2016 at 11:51, Jussi Kukkonen <jussi.kukkonen at intel.com> wrote:

> Signed-off-by: Jussi Kukkonen <jussi.kukkonen at intel.com>
> ---
>  appearance/mb-appearance.c | 4 ++--
>  configure.ac               | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/appearance/mb-appearance.c b/appearance/mb-appearance.c
> index 34640b4..6dfe98e 100644
> --- a/appearance/mb-appearance.c
> +++ b/appearance/mb-appearance.c
> @@ -381,14 +381,14 @@ main (int argc, char **argv) {
>    gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (theme_store),
> COL_NAME, GTK_SORT_ASCENDING);
>
>    dialog = gtk_dialog_new_with_buttons (_("Appearance"), NULL,
> -                                        GTK_DIALOG_NO_SEPARATOR,
> +                                        0,
>                                          GTK_STOCK_CLOSE,
> GTK_RESPONSE_CLOSE,
>                                          NULL);
>    g_signal_connect (dialog, "response", G_CALLBACK (gtk_main_quit), NULL);
>
>    gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
>
> -  box = GTK_BOX (GTK_DIALOG (dialog)->vbox);
> +  box = GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog)));
>    gtk_box_set_spacing (box, 6);
>    gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
>
> diff --git a/configure.ac b/configure.ac
> index b6d6034..882e319 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -7,7 +7,7 @@ AC_ISC_POSIX
>  AC_PROG_CC
>  AC_STDC_HEADERS
>
> -PKG_CHECK_MODULES(GTK, gtk+-2.0)
> +PKG_CHECK_MODULES(GTK, gtk+-3.0)
>  PKG_CHECK_MODULES(GCONF, gconf-2.0)
>
>  CFLAGS="$CFLAGS -Wall"
> --
> 2.8.1
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160429/0a4239a1/attachment.html>


More information about the yocto mailing list