Commit 8d5f31ff authored by Christian Hergert's avatar Christian Hergert

beautifier: fix occasional warning at startup

This appears to be racey, and after statically linking things in, it was
more likely to appear.
parent a577e57e
......@@ -123,12 +123,15 @@ static void
set_default_keybinding (GbBeautifierEditorAddin *self,
const gchar *action_name)
{
static const gchar *accel = "<primary><Alt>b";
DzlShortcutController *controller;
gchar *accel = "<primary><Alt>b";
g_assert (GB_IS_BEAUTIFIER_EDITOR_ADDIN (self));
g_assert (action_name != NULL);
if (self->current_view == NULL)
return;
controller = dzl_shortcut_controller_find (GTK_WIDGET (self->current_view));
dzl_shortcut_controller_add_command_action (controller,
"org.gnome.builder.editor-view.beautifier-default",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment