Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gtk deprecated warnings #42

Open
anaselli opened this issue Mar 30, 2014 · 6 comments
Open

gtk deprecated warnings #42

anaselli opened this issue Mar 30, 2014 · 6 comments
Labels
other-maintainer Not maintained by the core YaST team

Comments

@anaselli
Copy link
Contributor

@mvidner i found these warning in mageia cauldron:
home/anaselli/mageia/libyui-gtk/BUILD/libyui-gtk-2.44.3-2ee8b26/src/YGDialog.cc: In constructor ‘YGWindow::YGWindow(bool, YGDialog_)’:
/home/anaselli/mageia/libyui-gtk/BUILD/libyui-gtk-2.44.3-2ee8b26/src/YGDialog.cc:55:3: warning: ‘void gtk_container_set_resize_mode(GtkContainer_, GtkResizeMode)’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkcontainer.h:142) [-Wdeprecated-declarations]
gtk_container_set_resize_mode (GTK_CONTAINER (m_widget), GTK_RESIZE_PARENT);
^
/home/anaselli/mageia/libyui-gtk/BUILD/libyui-gtk-2.44.3-2ee8b26/src/YGDialog.cc:55:77: warning: ‘void gtk_container_set_resize_mode(GtkContainer*, GtkResizeMode)’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkcontainer.h:142) [-Wdeprecated-declarations]
gtk_container_set_resize_mode (GTK_CONTAINER (m_widget), GTK_RESIZE_PARENT);
^
[ 10%] Building C object src/CMakeFiles/yui-gtk.dir/ygdkmngloader.c.o
[ 13%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGDumbTab.cc.o
[ 15%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGFrame.cc.o
[ 18%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGImage.cc.o
[ 21%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGInputField.cc.o
[ 23%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGIntField.cc.o
[ 26%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGLabel.cc.o
[ 28%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGLayout.cc.o
[ 31%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGMenuButton.cc.o
[ 34%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGPackageSelectorPluginStub.cc.o
[ 36%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGProgressBar.cc.o
[ 39%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGPushButton.cc.o
[ 42%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGRadioButton.cc.o
[ 44%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGSelectionStore.cc.o
[ 47%] Building CXX object src/CMakeFiles/yui-gtk.dir/YGText.cc.o
[ 50%] Building C object src/CMakeFiles/yui-gtk.dir/ygtkbargraph.c.o
[ 52%] Building C object src/CMakeFiles/yui-gtk.dir/ygtkfieldentry.c.o
[ 55%] Building C object src/CMakeFiles/yui-gtk.dir/ygtkfixed.c.o
[ 57%] Building C object src/CMakeFiles/yui-gtk.dir/ygtkhtmlwrap.c.o
[ 60%] Building C object src/CMakeFiles/yui-gtk.dir/ygtkimage.c.o
[ 63%] Building C object src/CMakeFiles/yui-gtk.dir/ygtklinklabel.c.o
[ 65%] Building C object src/CMakeFiles/yui-gtk.dir/ygtkmenubutton.c.o
/home/anaselli/mageia/libyui-gtk/BUILD/libyui-gtk-2.44.3-2ee8b26/src/ygtkmenubutton.c: In function ‘ygtk_popup_window_frame_position’:
/home/anaselli/mageia/libyui-gtk/BUILD/libyui-gtk-2.44.3-2ee8b26/src/ygtkmenubutton.c:79:2: warning: ‘gtk_widget_get_root_window’ is deprecated (declared at /usr/include/gtk-3.0/gtk/gtkwidget.h:1019) [-Wdeprecated-declarations]
gint monitor_num = gdk_screen_get_monitor_at_window (screen, gtk_widget_get_root_window (widget));
^

@mvidner
Copy link
Member

mvidner commented Apr 4, 2014

I see, thanks. The warnings are since GTK 3.12 and we are still building with 3.10.
For reference:

anaselli referenced this issue Aug 27, 2015
don't build fail on using deprecated gtk widgets
@vstoykov
Copy link

@mvidner This issue is almost 3 years old and probably is not relevant today but I wanted to hijack it with some other warnings when I'm using dnfdragora which uses this library under Fedora 25.
The issue is manatools/dnfdragora#14.

The purson submitted the this issue is also dnfdragora's colaborator and probably can say more details how libyui is used in dnfdragora

@anaselli
Copy link
Contributor Author

@vstoykov i think the bug you mentioned it is fixed now on master thanks to @besser82

@anaselli
Copy link
Contributor Author

missing some warning yet. @hellcp

@hellcp
Copy link
Contributor

hellcp commented May 28, 2020

src/YGDialog.cc: In member function ‘virtual void YGDialog::highlight(YWidget*)’:
src/YGDialog.cc:503:78: warning: ‘void gtk_widget_override_background_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  503 | verride_background_color (widget, GTK_STATE_FLAG_NORMAL, NULL);
      |                                                              ^

In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:503:78: warning: ‘void gtk_widget_override_background_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  503 | verride_background_color (widget, GTK_STATE_FLAG_NORMAL, NULL);
      |                                                              ^

In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:504:67: warning: ‘void gtk_widget_override_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  504 |     gtk_widget_override_color (widget, GTK_STATE_FLAG_NORMAL, NULL);
      |                                                                   ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:504:67: warning: ‘void gtk_widget_override_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  504 |     gtk_widget_override_color (widget, GTK_STATE_FLAG_NORMAL, NULL);
      |                                                                   ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:520:83: warning: ‘void gtk_widget_override_background_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  520 | de_background_color (widget, GTK_STATE_FLAG_NORMAL, &bg_color);
      |                                                              ^

In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:520:83: warning: ‘void gtk_widget_override_background_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  520 | de_background_color (widget, GTK_STATE_FLAG_NORMAL, &bg_color);
      |                                                              ^

In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:521:74: warning: ‘void gtk_widget_override_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  521 |     gtk_widget_override_color (widget, GTK_STATE_FLAG_NORMAL, &base_color);
      |                                                                          ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/YGDialog.cc:521:74: warning: ‘void gtk_widget_override_color(GtkWidget*, GtkStateFlags, const GdkRGBA*)’ is deprecated [-Wdeprecated-declarations]
  521 |     gtk_widget_override_color (widget, GTK_STATE_FLAG_NORMAL, &base_color);
      |                                                                          ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUI.h:14,
                 from src/YGDialog.cc:7:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygdkmngloader.c:328:58: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  328 |                                                          const GTimeVal     *start_time)
      |                                                          ^~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h:32,
                 from src/ygdkmngloader.h:15,
                 from src/ygdkmngloader.c:8:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
  547 | struct _GTimeVal
      |        ^~~~~~~~~
src/ygdkmngloader.c:376:47: warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
  376 |                                               const GTimeVal         *current_time)
      |                                               ^~~~~
In file included from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/glib-2.0/gobject/gbinding.h:28,
                 from /usr/include/glib-2.0/glib-object.h:22,
                 from /usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h:32,
                 from src/ygdkmngloader.h:15,
                 from src/ygdkmngloader.c:8:
/usr/include/glib-2.0/glib/gtypes.h:547:8: note: declared here
  547 | struct _GTimeVal
      |        ^~~~~~~~~
src/ygtkbargraph.c: In function ‘ygtk_colored_label_set_background’:
src/ygtkbargraph.c:226:1: warning: ‘gtk_widget_override_background_color’ is deprecated [-Wdeprecated-declarations]
  226 | { gtk_widget_override_background_color (GTK_WIDGET (label), GTK_STATE_NORMAL, color); }
      | ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkratiobox.h:11,
                 from src/ygtkbargraph.c:9:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkbargraph.c: In function ‘ygtk_colored_label_set_foreground’:
src/ygtkbargraph.c:229:1: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
  229 | { gtk_widget_override_color (GTK_WIDGET (label), GTK_STATE_NORMAL, color); }
      | ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkratiobox.h:11,
                 from src/ygtkbargraph.c:9:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtklinklabel.c: In function ‘ygtk_link_label_realize’:
src/ygtklinklabel.c:44:2: warning: ‘gdk_window_set_background_rgba’ is deprecated [-Wdeprecated-declarations]
   44 |  gdk_window_set_background_rgba(label->link_window, &white);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkseat.h:28,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/ygtklinklabel.c:10:
/usr/include/gtk-3.0/gdk/gdkwindow.h:787:15: note: declared here
  787 | void          gdk_window_set_background_rgba (GdkWindow     *window,
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkmenubutton.c: In function ‘ygtk_popup_window_popup’:
src/ygtkmenubutton.c:129:2: warning: ‘gdk_device_grab’ is deprecated: Use 'gdk_seat_grab' instead [-Wdeprecated-declarations]
  129 |  if (gdk_device_grab (pointer, window, GDK_OWNERSHIP_NONE, TRUE,
      |  ^~
In file included from /usr/include/gtk-3.0/gdk/gdkdnd.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkevents.h:34,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:31,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/ygtkmenubutton.h:14,
                 from src/ygtkmenubutton.c:9:
/usr/include/gtk-3.0/gdk/gdkdevice.h:230:15: note: declared here
  230 | GdkGrabStatus gdk_device_grab        (GdkDevice        *device,
      |               ^~~~~~~~~~~~~~~
src/ygtkmenubutton.c:134:17: warning: ‘gdk_device_grab’ is deprecated: Use 'gdk_seat_grab' instead [-Wdeprecated-declarations]
  134 |                 if (gdk_device_grab (keyboard, window, GDK_OWNERSHIP_NONE, TRUE,
      |                 ^~
In file included from /usr/include/gtk-3.0/gdk/gdkdnd.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkevents.h:34,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:31,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/ygtkmenubutton.h:14,
                 from src/ygtkmenubutton.c:9:
/usr/include/gtk-3.0/gdk/gdkdevice.h:230:15: note: declared here
  230 | GdkGrabStatus gdk_device_grab        (GdkDevice        *device,
      |               ^~~~~~~~~~~~~~~
src/ygtkmenubutton.c:136:6: warning: ‘gdk_device_ungrab’ is deprecated: Use 'gdk_seat_ungrab' instead [-Wdeprecated-declarations]
  136 |      gdk_device_ungrab (pointer, activate_time);
      |      ^~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gdk/gdkdnd.h:33,
                 from /usr/include/gtk-3.0/gdk/gdkevents.h:34,
                 from /usr/include/gtk-3.0/gdk/gdkdisplay.h:31,
                 from /usr/include/gtk-3.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/ygtkmenubutton.h:14,
                 from src/ygtkmenubutton.c:9:
/usr/include/gtk-3.0/gdk/gdkdevice.h:239:15: note: declared here
  239 | void          gdk_device_ungrab      (GdkDevice        *device,
      |               ^~~~~~~~~~~~~~~~~
src/ygtkrichtext.c: In function ‘ygtk_rich_text_set_rtl’:
src/ygtkrichtext.c:608:3: warning: ‘pango_find_base_dir’ is deprecated [-Wdeprecated-declarations]
  608 |   PangoDirection dir = pango_find_base_dir (text, -1);
      |   ^~~~~~~~~~~~~~
In file included from /usr/include/pango-1.0/pango/pango-types.h:200,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-3.0/gdk/gdktypes.h:35,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/ygtktextview.h:12,
                 from src/ygtkrichtext.h:13,
                 from src/ygtkrichtext.c:9:
/usr/include/pango-1.0/pango/pango-bidi-type.h:95:16: note: declared here
   95 | PangoDirection pango_find_base_dir          (const gchar *text,
      |                ^~~~~~~~~~~~~~~~~~~
src/ygtksteps.c: In function ‘ygtk_steps_append’:
src/ygtksteps.c:142:2: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
  142 |  gtk_widget_override_color (label, GTK_STATE_NORMAL, &black);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtksteps.h:21,
                 from src/ygtksteps.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtksteps.c: In function ‘ygtk_steps_append_heading’:
src/ygtksteps.c:172:2: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
  172 |  gtk_widget_override_color (label, GTK_STATE_NORMAL, &black);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtksteps.h:21,
                 from src/ygtksteps.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtktimezonepicker.c: In function ‘ygtk_time_zone_picker_realize’:
src/ygtktimezonepicker.c:302:2: warning: ‘gtk_style_context_set_background’ is deprecated: Use 'gtk_render_background' instead [-Wdeprecated-declarations]
  302 |  gtk_style_context_set_background(style_ctx, picker->map_window);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkicontheme.h:27,
                 from /usr/include/gtk-3.0/gtk/gtk.h:127,
                 from src/ygtktimezonepicker.h:13,
                 from src/ygtktimezonepicker.c:9:
/usr/include/gtk-3.0/gtk/gtkstylecontext.h:1232:6: note: declared here
 1232 | void gtk_style_context_set_background       (GtkStyleContext *context,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c: In function ‘search_entry_changed_cb’:
src/ygtkwizard.c:61:3: warning: ‘gtk_widget_override_background_color’ is deprecated [-Wdeprecated-declarations]
   61 |   gtk_widget_override_background_color (widget, GTK_STATE_NORMAL, &yellow);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:62:3: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
   62 |   gtk_widget_override_color (widget, GTK_STATE_NORMAL, &black);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:65:3: warning: ‘gtk_widget_override_background_color’ is deprecated [-Wdeprecated-declarations]
   65 |   gtk_widget_override_background_color (widget, GTK_STATE_NORMAL, NULL);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:66:3: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
   66 |   gtk_widget_override_color (widget, GTK_STATE_NORMAL, NULL);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:69:3: warning: ‘gtk_widget_override_background_color’ is deprecated [-Wdeprecated-declarations]
   69 |   gtk_widget_override_background_color (widget, GTK_STATE_NORMAL, &red);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:70:3: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
   70 |   gtk_widget_override_color (widget, GTK_STATE_NORMAL, &white);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c: In function ‘ygtk_wizard_header_init’:
src/ygtkwizard.c:445:2: warning: ‘gtk_widget_override_background_color’ is deprecated [-Wdeprecated-declarations]
  445 |  gtk_widget_override_background_color (GTK_WIDGET (header), GTK_STATE_NORMAL, &white);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1148:14: note: declared here
 1148 | void         gtk_widget_override_background_color (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:460:2: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
  460 |  gtk_widget_override_color (header->title, GTK_STATE_NORMAL, &black);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ygtkwizard.c:465:2: warning: ‘gtk_widget_override_color’ is deprecated [-Wdeprecated-declarations]
  465 |  gtk_widget_override_color (header->description, GTK_STATE_NORMAL, &black);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/ygtkwizard.h:14,
                 from src/ygtkwizard.c:13:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1144:14: note: declared here
 1144 | void         gtk_widget_override_color            (GtkWidget     *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~~
src/YGUI.cc: In member function ‘virtual void YGApplication::beep()’:
src/YGUI.cc:488:12: warning: ‘void gdk_beep()’ is deprecated: Use 'gdk_display_beep' instead [-Wdeprecated-declarations]
  488 |   gdk_beep();
      |            ^
In file included from /usr/include/gtk-3.0/gdk/gdk.h:50,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/YGUI.h:14,
                 from src/YGUI.cc:16:
/usr/include/gtk-3.0/gdk/gdkmain.h:121:6: note: declared here
  121 | void gdk_beep (void);
      |      ^~~~~~~~
src/YGUI.cc:488:12: warning: ‘void gdk_beep()’ is deprecated: Use 'gdk_display_beep' instead [-Wdeprecated-declarations]
  488 |   gdk_beep();
      |            ^
In file included from /usr/include/gtk-3.0/gdk/gdk.h:50,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/YGUI.h:14,
                 from src/YGUI.cc:16:
/usr/include/gtk-3.0/gdk/gdkmain.h:121:6: note: declared here
  121 | void gdk_beep (void);
      |      ^~~~~~~~
src/YGUtils.cc: In function ‘void YGUtils::setWidgetFont(GtkWidget*, PangoStyle, PangoWeight, double)’:
src/YGUtils.cc:502:40: warning: ‘void gtk_widget_override_font(GtkWidget*, const PangoFontDescription*)’ is deprecated [-Wdeprecated-declarations]
  502 |  gtk_widget_override_font (widget, font);
      |                                        ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUtils.h:10,
                 from src/YGUtils.cc:11:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here
 1153 | void         gtk_widget_override_font             (GtkWidget                  *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
src/YGUtils.cc:502:40: warning: ‘void gtk_widget_override_font(GtkWidget*, const PangoFontDescription*)’ is deprecated [-Wdeprecated-declarations]
  502 |  gtk_widget_override_font (widget, font);
      |                                        ^
In file included from /usr/include/gtk-3.0/gtk/gtkapplication.h:27,
                 from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
                 from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from src/YGUtils.h:10,
                 from src/YGUtils.cc:11:
/usr/include/gtk-3.0/gtk/gtkwidget.h:1153:14: note: declared here
 1153 | void         gtk_widget_override_font             (GtkWidget                  *widget,
      |              ^~~~~~~~~~~~~~~~~~~~~~~~
src/YGWidget.cc: In member function ‘virtual void YGLabeledWidget::doSetLabel(const string&)’:
src/YGWidget.cc:334:45: warning: ‘PangoDirection pango_find_base_dir(const gchar*, gint)’ is deprecated [-Wdeprecated-declarations]
  334 |         pango_find_base_dir (str.c_str(), -1) == PANGO_DIRECTION_LTR)
      |                                             ^
In file included from /usr/include/pango-1.0/pango/pango-types.h:200,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-3.0/gdk/gdktypes.h:35,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/YGWidget.h:8,
                 from src/YGWidget.cc:8:
/usr/include/pango-1.0/pango/pango-bidi-type.h:95:16: note: declared here
   95 | PangoDirection pango_find_base_dir          (const gchar *text,
      |                ^~~~~~~~~~~~~~~~~~~
src/YGWidget.cc:334:45: warning: ‘PangoDirection pango_find_base_dir(const gchar*, gint)’ is deprecated [-Wdeprecated-declarations]
  334 |         pango_find_base_dir (str.c_str(), -1) == PANGO_DIRECTION_LTR)
      |                                             ^
In file included from /usr/include/pango-1.0/pango/pango-types.h:200,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-3.0/gdk/gdktypes.h:35,
                 from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-3.0/gdk/gdk.h:32,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from src/YGWidget.h:8,
                 from src/YGWidget.cc:8:
/usr/include/pango-1.0/pango/pango-bidi-type.h:95:16: note: declared here
   95 | PangoDirection pango_find_base_dir          (const gchar *text,
      |                ^~~~~~~~~~~~~~~~~~~
src/YGWizard.cc:180:18: warning: #warning YGWizard::getDialogHeading() not implemented yet [-Wcpp]
  180 |                 #warning YGWizard::getDialogHeading() not implemented yet
      |                  ^~~~~~~
src/YGWizard.cc:192:18: warning: #warning YGWizard::getDialogTitle() not implemented yet [-Wcpp]
  192 |                 #warning YGWizard::getDialogTitle() not implemented yet
      |                  ^~~~~~~

Those are the remaining warnings from the Gtk 3.24

@ancorgs
Copy link

ancorgs commented Mar 17, 2021

Since the Gtk backend is not developed or maintained by the YaST Team at SUSE, I'm adding the "other-maintainer" label to this in order to help filtering the various list of issues.

@ancorgs ancorgs added the other-maintainer Not maintained by the core YaST team label Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other-maintainer Not maintained by the core YaST team
Projects
None yet
Development

No branches or pull requests

5 participants