Commit 76d37ecf authored by Christian Hergert's avatar Christian Hergert
Browse files

util: special-case widget being an IdeWorkbench

parent 373b7a30
......@@ -140,6 +140,9 @@ ide_widget_get_workbench (GtkWidget *widget)
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
if (IDE_IS_WORKBENCH (widget))
return IDE_WORKBENCH (widget);
ancestor = gtk_widget_get_ancestor (widget, IDE_TYPE_WORKBENCH);
if (IDE_IS_WORKBENCH (ancestor))
return IDE_WORKBENCH (ancestor);
......
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