Commit 64954afa authored by Michael Natterer's avatar Michael Natterer 😴

app: don't use the user context in GimpDeviceEditor's container view

GimpDeviceInfo is a GimpToolPreset now, and using the user context
would cause the device info selected in the dialog to be set globally
as tool preset. Use a temporary context instead, the container view
just needs it because.
parent 806d2606
......@@ -28,6 +28,7 @@
#include "widgets-types.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimplist.h"
#include "core/gimpmarshal.h"
......@@ -216,6 +217,7 @@ gimp_device_editor_constructed (GObject *object)
GimpDeviceEditor *editor = GIMP_DEVICE_EDITOR (object);
GimpDeviceEditorPrivate *private = GIMP_DEVICE_EDITOR_GET_PRIVATE (editor);
GimpContainer *devices;
GimpContext *context;
GList *list;
G_OBJECT_CLASS (parent_class)->constructed (object);
......@@ -234,8 +236,10 @@ gimp_device_editor_constructed (GObject *object)
gimp_container_view_set_container (GIMP_CONTAINER_VIEW (private->treeview),
context = gimp_context_new (private->gimp, "device-editor-list", NULL);
gimp_container_view_set_context (GIMP_CONTAINER_VIEW (private->treeview),
gimp_get_user_context (private->gimp));
g_object_unref (context);
g_signal_connect (devices, "add",
G_CALLBACK (gimp_device_editor_add_device),
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