mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 19:30:10 +00:00
gtkemojicompletion.c: Don't use g_autoptr()
This code is also built with non-GCC/non-CLang compilers, so don't use a GCCism here.
This commit is contained in:
parent
04b4c077f6
commit
9332237bd4
@ -620,7 +620,7 @@ long_pressed_cb (GtkGesture *gesture,
|
||||
static void
|
||||
gtk_emoji_completion_init (GtkEmojiCompletion *completion)
|
||||
{
|
||||
g_autoptr(GBytes) bytes = NULL;
|
||||
GBytes *bytes = NULL;
|
||||
GtkGesture *long_press;
|
||||
|
||||
gtk_widget_init_template (GTK_WIDGET (completion));
|
||||
@ -628,6 +628,8 @@ gtk_emoji_completion_init (GtkEmojiCompletion *completion)
|
||||
bytes = g_resources_lookup_data ("/org/gtk/libgtk/emoji/emoji.data", 0, NULL);
|
||||
completion->data = g_variant_ref_sink (g_variant_new_from_bytes (G_VARIANT_TYPE ("a(auss)"), bytes, TRUE));
|
||||
|
||||
g_bytes_unref (bytes);
|
||||
|
||||
long_press = gtk_gesture_long_press_new ();
|
||||
g_signal_connect (long_press, "pressed", G_CALLBACK (long_pressed_cb), completion);
|
||||
gtk_widget_add_controller (completion->list, GTK_EVENT_CONTROLLER (long_press));
|
||||
|
Loading…
Reference in New Issue
Block a user