summaryrefslogtreecommitdiff
path: root/gtk/gtkmnemonichash.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-20 00:38:08 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-28 20:25:16 +0000
commit302d2a04aebb3d97829b17ca4f27fe62234d2de8 (patch)
tree003a114695f30ea40b8f759a2c8f819ad18d1bd0 /gtk/gtkmnemonichash.c
parent9765aabebd5ed699f254155b68109a1bba4fb51f (diff)
downloadgtk+-302d2a04aebb3d97829b17ca4f27fe62234d2de8.tar.gz
Stop using gtk_widget_get_surface
Replace all uses of gtk_widget_get_surface by gtk_native_get_surface.
Diffstat (limited to 'gtk/gtkmnemonichash.c')
-rw-r--r--gtk/gtkmnemonichash.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkmnemonichash.c b/gtk/gtkmnemonichash.c
index 03488e2887..e6504842e1 100644
--- a/gtk/gtkmnemonichash.c
+++ b/gtk/gtkmnemonichash.c
@@ -17,7 +17,10 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
+
#include "gtkmnemonichash.h"
+#include "gtknative.h"
struct _GtkMnemnonicHash
{
@@ -124,7 +127,7 @@ _gtk_mnemonic_hash_activate (GtkMnemonicHash *mnemonic_hash,
for (list = targets; list; list = list->next)
{
widget = GTK_WIDGET (list->data);
- surface = gtk_widget_get_surface (widget);
+ surface = gtk_native_get_surface (gtk_widget_get_native (widget));
if (gtk_widget_is_sensitive (widget) &&
gtk_widget_get_mapped (widget) &&