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

Fix all deprecated functions in GTK3 <= 3.22 #58

Merged
merged 11 commits into from
May 28, 2020

Conversation

besser82
Copy link
Member

@besser82 besser82 commented Apr 19, 2017

Fixes for GTK3-3.22 are on my next batch. This is ready to go now.

@besser82 besser82 force-pushed the bugfix/Werror branch 7 times, most recently from 41f80cd to 17b3218 Compare April 19, 2017 18:17
@besser82 besser82 changed the title [WIP] Fix all functions that were deprecated in GTK3 >= 3.20 [WIP] Fix all deprecated functions in GTK3 >= 3.22 Apr 19, 2017
@besser82 besser82 force-pushed the bugfix/Werror branch 14 times, most recently from 62eb296 to 0b4d8f1 Compare April 20, 2017 08:56
  - Remove obsolete gtk_container_set_resize_mode()
  - Replace gtk_widget_get_root_window()
@besser82 besser82 force-pushed the bugfix/Werror branch 6 times, most recently from 7b56896 to 2c95d32 Compare April 20, 2017 09:42
@besser82
Copy link
Member Author

This PR is ready for review && merge now. ^_^

  - Remove gtk_tree_view_set_rules_hint()
  - Remove gtk_window_set_has_resize_grip()
  - Replace gtk_alignment_new()
  - Replace gtk_alignment_set_padding()
  - Replace gtk_arrow_new()
  - Replace gtk_misc_set_alignment()
  - Replace gtk_misc_set_padding()
@besser82 besser82 force-pushed the bugfix/Werror branch 2 times, most recently from bcefe3b to 05846d5 Compare April 20, 2017 09:55
Copy link
Member

@jreidinger jreidinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@besser82 besser82 changed the title Fix all deprecated functions in GTK3 <= 3.20 Fix all deprecated functions in GTK3 <= 3.22 Apr 20, 2017
@besser82 besser82 force-pushed the bugfix/Werror branch 2 times, most recently from 4abdd44 to 40d5827 Compare April 20, 2017 12:14
  - Replace gtk_style_context_get_background_color()
  - Replace gdk_device_manager_get_client_pointer()
  - Replace gdk_display_get_device_manager()
  - Replace gtk_button_set_focus_on_click()
@besser82 besser82 force-pushed the bugfix/Werror branch 4 times, most recently from b0c43c8 to 9b49cbe Compare April 20, 2017 14:12
  - Replace gdk_screen_get_height()
  - Replace gdk_screen_get_monitor_at_window()
  - Replace gdk_screen_get_monitor_geometry()
  - Replace gdk_screen_get_width()
  - Replace gdk_visual_get_best_depth()
@anaselli
Copy link
Contributor

Is this still open?

@jreidinger
Copy link
Member

well, it was approved, but not merged and now it conflict in changes, so it need rebase on top of current master and merge it.

@hellcp
Copy link
Contributor

hellcp commented Oct 29, 2018

@besser82 could I ask you to fix up conflicts? I would like to fix some parts of libyui-gtk and this is a useful PR to not to have to worry about already fixed deprecated warnings.

@Conan-Kudo
Copy link

@besser82 ping? Could you please rebase this change?

@anaselli
Copy link
Contributor

anaselli commented Mar 3, 2019

Conflicts are here because of the missed merge. I think you can get the master for all of those files that are not part of the fixing. If you want to trace the changes the real difference is into package/libyui-gtk.changes:

  • Fix Werror=misleading-indentation
  • Fix all deprecated / obsoleted functions in GTK-3.12 (gh#gtk deprecated warnings #42)
    • Remove obsolete gtk_container_set_resize_mode()
    • Replace gtk_widget_get_root_window()
  • Fix all deprecated / obsoleted functions in GTK-3.14 (gh#gtk deprecated warnings #42)
    • Remove gtk_tree_view_set_rules_hint()
    • Remove gtk_window_set_has_resize_grip()
    • Replace gtk_alignment_new()
    • Replace gtk_alignment_set_padding()
    • Replace gtk_arrow_new()
    • Replace gtk_misc_set_alignment()
    • Replace gtk_misc_set_padding()
  • Fix all deprecated / obsoleted functions in GDK-3.16 (gh#gtk deprecated warnings #42)
    • Replace gdk_cursor_new()
  • Fix all deprecated / obsoleted functions in GTK-3.16 (gh#gtk deprecated warnings #42)
    • Replace gtk_style_context_get_background_color()
  • Fix all deprecated / obsoleted functions in GDK-3.20 (gh#gtk deprecated warnings #42)
    • Replace gdk_device_manager_get_client_pointer()
  • Fix all deprecated / obsoleted functions in GTK-3.20 (gh#gtk deprecated warnings #42)
    • Replace gtk_button_set_focus_on_click()
  • Fix all deprecated / obsoleted functions in GDK-3.22 (gh#gtk deprecated warnings #42)
    • Replace gdk_screen_get_height()
    • Replace gdk_screen_get_monitor_at_window()
    • Replace gdk_screen_get_monitor_geometry()
    • Replace gdk_screen_get_width()
    • Replace gdk_visual_get_best_depth()
  • Fix all deprecated / obsoleted functions in GTK-3.22 (gh#gtk deprecated warnings #42)
    • Replace gtk_menu_popup()
    • Replace gdk_display_get_device_manager()

@besser82
Copy link
Member Author

besser82 commented Mar 3, 2019

@anaselli @Conan-Kudo I'll get back to this during beginning of the week.

I think a lot of preprocessor conditionals can be removed now, as GTK v3.22 is the final release and was included in almost all recent enterprise Linux releases.

@anaselli
Copy link
Contributor

anaselli commented Mar 3, 2019

@besser82 great!

@anaselli anaselli merged commit 3832391 into libyui:master May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants