wok diff gens-gs/stuff/gens-gtk.patch @ rev 21193
systemd: added build dependency glibc-dev
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 05 17:46:01 2019 +0100 (2019-04-05) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gens-gs/stuff/gens-gtk.patch Fri Apr 05 17:46:01 2019 +0100 1.3 @@ -0,0 +1,134 @@ 1.4 +diff -ru gens/src/gens/ui/gtk/about/about_window.cpp gens-build/src/gens/ui/gtk/about/about_window.cpp 1.5 +--- gens/src/gens/ui/gtk/about/about_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.6 ++++ gens-build/src/gens/ui/gtk/about/about_window.cpp 2010-10-11 15:46:25.000000000 +0000 1.7 +@@ -84,7 +84,7 @@ 1.8 + gtk_window_set_position(GTK_WINDOW(about_window), GTK_WIN_POS_CENTER); 1.9 + gtk_window_set_resizable(GTK_WINDOW(about_window), FALSE); 1.10 + gtk_window_set_type_hint(GTK_WINDOW(about_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.11 +- gtk_dialog_set_has_separator(GTK_DIALOG(about_window), FALSE); 1.12 ++ g_object_set(GTK_DIALOG(about_window), "has-separator", FALSE, NULL); 1.13 + 1.14 + // Callbacks for if the window is closed. 1.15 + g_signal_connect((gpointer)about_window, "delete_event", 1.16 +diff -ru gens/src/gens/ui/gtk/bios_misc_files/bmf_window.cpp gens-build/src/gens/ui/gtk/bios_misc_files/bmf_window.cpp 1.17 +--- gens/src/gens/ui/gtk/bios_misc_files/bmf_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.18 ++++ gens-build/src/gens/ui/gtk/bios_misc_files/bmf_window.cpp 2010-10-11 15:33:03.000000000 +0000 1.19 +@@ -84,7 +84,7 @@ 1.20 + gtk_window_set_position(GTK_WINDOW(bmf_window), GTK_WIN_POS_CENTER); 1.21 + gtk_window_set_resizable(GTK_WINDOW(bmf_window), FALSE); 1.22 + gtk_window_set_type_hint(GTK_WINDOW(bmf_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.23 +- gtk_dialog_set_has_separator(GTK_DIALOG(bmf_window), FALSE); 1.24 ++ g_object_set(GTK_DIALOG(bmf_window), "has-separator", FALSE, NULL); 1.25 + 1.26 + // Callbacks for if the window is closed. 1.27 + g_signal_connect((gpointer)bmf_window, "delete_event", 1.28 +diff -ru gens/src/gens/ui/gtk/directory_config/dir_window.cpp gens-build/src/gens/ui/gtk/directory_config/dir_window.cpp 1.29 +--- gens/src/gens/ui/gtk/directory_config/dir_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.30 ++++ gens-build/src/gens/ui/gtk/directory_config/dir_window.cpp 2010-10-11 15:34:21.000000000 +0000 1.31 +@@ -110,7 +110,7 @@ 1.32 + gtk_window_set_position(GTK_WINDOW(dir_window), GTK_WIN_POS_CENTER); 1.33 + gtk_window_set_resizable(GTK_WINDOW(dir_window), FALSE); 1.34 + gtk_window_set_type_hint(GTK_WINDOW(dir_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.35 +- gtk_dialog_set_has_separator(GTK_DIALOG(dir_window), FALSE); 1.36 ++ g_object_set(GTK_DIALOG(dir_window), "has-separator", FALSE, NULL); 1.37 + 1.38 + // Callbacks for if the window is closed. 1.39 + g_signal_connect((gpointer)(dir_window), "delete_event", 1.40 +diff -ru gens/src/gens/ui/gtk/general_options/genopt_window.cpp gens-build/src/gens/ui/gtk/general_options/genopt_window.cpp 1.41 +--- gens/src/gens/ui/gtk/general_options/genopt_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.42 ++++ gens-build/src/gens/ui/gtk/general_options/genopt_window.cpp 2010-10-11 15:36:00.000000000 +0000 1.43 +@@ -138,7 +138,7 @@ 1.44 + gtk_window_set_position(GTK_WINDOW(genopt_window), GTK_WIN_POS_CENTER); 1.45 + gtk_window_set_resizable(GTK_WINDOW(genopt_window), false); 1.46 + gtk_window_set_type_hint(GTK_WINDOW(genopt_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.47 +- gtk_dialog_set_has_separator(GTK_DIALOG(genopt_window), false); 1.48 ++ g_object_set(GTK_DIALOG(genopt_window), "has-separator", false, NULL); 1.49 + 1.50 + // Callbacks for if the window is closed. 1.51 + g_signal_connect((gpointer)genopt_window, "delete_event", 1.52 +diff -ru gens/src/gens/ui/gtk/gens/gens_window_callbacks.cpp gens-build/src/gens/ui/gtk/gens/gens_window_callbacks.cpp 1.53 +--- gens/src/gens/ui/gtk/gens/gens_window_callbacks.cpp 2010-10-11 16:32:29.000000000 +0000 1.54 ++++ gens-build/src/gens/ui/gtk/gens/gens_window_callbacks.cpp 2010-10-11 15:21:28.000000000 +0000 1.55 +@@ -157,9 +157,9 @@ 1.56 + GSFT_UNUSED_PARAMETER(y); 1.57 + GSFT_UNUSED_PARAMETER(user_data); 1.58 + 1.59 +- if (context->targets) 1.60 ++ if (gdk_drag_context_list_targets(context)) 1.61 + { 1.62 +- GdkAtom target_type = GDK_POINTER_TO_ATOM(g_list_nth_data(context->targets, 0)); 1.63 ++ GdkAtom target_type = GDK_POINTER_TO_ATOM(g_list_nth_data(gdk_drag_context_list_targets(context), 0)); 1.64 + gtk_drag_get_data(widget, context, target_type, time); 1.65 + return true; 1.66 + } 1.67 +diff -ru gens/src/gens/ui/gtk/opengl_resolution/glres_window.cpp gens-build/src/gens/ui/gtk/opengl_resolution/glres_window.cpp 1.68 +--- gens/src/gens/ui/gtk/opengl_resolution/glres_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.69 ++++ gens-build/src/gens/ui/gtk/opengl_resolution/glres_window.cpp 2010-10-11 15:46:21.000000000 +0000 1.70 +@@ -75,7 +75,7 @@ 1.71 + gtk_window_set_position(GTK_WINDOW(glres_window), GTK_WIN_POS_CENTER); 1.72 + gtk_window_set_resizable(GTK_WINDOW(glres_window), FALSE); 1.73 + gtk_window_set_type_hint(GTK_WINDOW(glres_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.74 +- gtk_dialog_set_has_separator(GTK_DIALOG(glres_window), FALSE); 1.75 ++ g_object_set(GTK_DIALOG(glres_window), "has-separator", FALSE, NULL); 1.76 + 1.77 + // Callbacks for if the window is closed. 1.78 + g_signal_connect((gpointer)(glres_window), "delete_event", 1.79 +diff -ru gens/src/gens/ui/gtk/plugin_manager/pmgr_window.cpp gens-build/src/gens/ui/gtk/plugin_manager/pmgr_window.cpp 1.80 +--- gens/src/gens/ui/gtk/plugin_manager/pmgr_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.81 ++++ gens-build/src/gens/ui/gtk/plugin_manager/pmgr_window.cpp 2010-10-11 15:46:29.000000000 +0000 1.82 +@@ -80,8 +80,7 @@ 1.83 + // Callbacks. 1.84 + static gboolean pmgr_window_callback_close(GtkWidget *widget, GdkEvent *event, gpointer user_data); 1.85 + static void pmgr_window_callback_response(GtkDialog *dialog, gint response_id, gpointer user_data); 1.86 +-static void pmgr_window_callback_tabPluginList_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, 1.87 +- guint page_num, gpointer user_data); 1.88 ++static void pmgr_window_callback_tabPluginList_switch_page(GtkNotebook *notebook, guint page_num, gpointer user_data); 1.89 + static void pmgr_window_callback_lstPluginList_cursor_changed(GtkTreeView *tree_view, gpointer user_data); 1.90 + static void pmgr_window_callback_fraPluginDesc_size_allocate(GtkWidget *widget, GtkAllocation *allocation, gpointer user_data); 1.91 + 1.92 +@@ -119,7 +118,7 @@ 1.93 + gtk_window_set_position(GTK_WINDOW(pmgr_window), GTK_WIN_POS_CENTER); 1.94 + gtk_window_set_resizable(GTK_WINDOW(pmgr_window), FALSE); 1.95 + gtk_window_set_type_hint(GTK_WINDOW(pmgr_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.96 +- gtk_dialog_set_has_separator(GTK_DIALOG(pmgr_window), FALSE); 1.97 ++ g_object_set(GTK_DIALOG(pmgr_window), "has-separator", FALSE, NULL); 1.98 + 1.99 + // Callbacks for if the window is closed. 1.100 + g_signal_connect((gpointer)pmgr_window, "delete_event", 1.101 +@@ -559,11 +558,9 @@ 1.102 + * @param page_num New notebook page index. 1.103 + * @param user_data User data. 1.104 + */ 1.105 +-static void pmgr_window_callback_tabPluginList_switch_page(GtkNotebook *notebook, GtkNotebookPage *page, 1.106 +- guint page_num, gpointer user_data) 1.107 ++static void pmgr_window_callback_tabPluginList_switch_page(GtkNotebook *notebook, guint page_num, gpointer user_data) 1.108 + { 1.109 + GSFT_UNUSED_PARAMETER(notebook); 1.110 +- GSFT_UNUSED_PARAMETER(page); 1.111 + GSFT_UNUSED_PARAMETER(user_data); 1.112 + 1.113 + // Activate the "cursor-changed" callback for the page. 1.114 +diff -ru gens/src/gens/ui/gtk/select_cdrom/selcd_window.cpp gens-build/src/gens/ui/gtk/select_cdrom/selcd_window.cpp 1.115 +--- gens/src/gens/ui/gtk/select_cdrom/selcd_window.cpp 2010-10-11 16:32:29.000000000 +0000 1.116 ++++ gens-build/src/gens/ui/gtk/select_cdrom/selcd_window.cpp 2010-10-11 15:46:16.000000000 +0000 1.117 +@@ -94,7 +94,7 @@ 1.118 + gtk_window_set_position(GTK_WINDOW(selcd_window), GTK_WIN_POS_CENTER); 1.119 + gtk_window_set_resizable(GTK_WINDOW(selcd_window), FALSE); 1.120 + gtk_window_set_type_hint(GTK_WINDOW(selcd_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.121 +- gtk_dialog_set_has_separator(GTK_DIALOG(selcd_window), FALSE); 1.122 ++ g_object_set(GTK_DIALOG(selcd_window), "has-separator", FALSE, NULL); 1.123 + 1.124 + // Callbacks for if the window is closed. 1.125 + g_signal_connect((gpointer)(selcd_window), "delete_event", 1.126 +diff -ru gens/src/mdp/misc/game_genie/gg_window_gtk2.cpp gens-build/src/mdp/misc/game_genie/gg_window_gtk2.cpp 1.127 +--- gens/src/mdp/misc/game_genie/gg_window_gtk2.cpp 2010-10-11 16:32:29.000000000 +0000 1.128 ++++ gens-build/src/mdp/misc/game_genie/gg_window_gtk2.cpp 2010-10-11 15:52:05.000000000 +0000 1.129 +@@ -111,7 +111,7 @@ 1.130 + gtk_window_set_position(GTK_WINDOW(gg_window), GTK_WIN_POS_CENTER); 1.131 + gtk_window_set_resizable(GTK_WINDOW(gg_window), TRUE); 1.132 + gtk_window_set_type_hint(GTK_WINDOW(gg_window), GDK_WINDOW_TYPE_HINT_DIALOG); 1.133 +- gtk_dialog_set_has_separator(GTK_DIALOG(gg_window), FALSE); 1.134 ++ g_object_set(GTK_DIALOG(gg_window), "has-separator", FALSE, NULL); 1.135 + 1.136 + // Add the window icon. 1.137 + GList *icon_list = NULL;