diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkPicker.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkPicker.hxx | 7 | ||||
-rw-r--r-- | vcl/unx/gtk/window/gtksalmenu.cxx | 9 |
3 files changed, 2 insertions, 16 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx index 25553aa6ad3b..ccae7d181a80 100644 --- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx @@ -98,7 +98,7 @@ extern "C" { static gboolean canceldialog(RunDialog *pDialog) { - GdkThreadLock lock; + SolarMutexGuard g; pDialog->cancel(); return false; } diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.hxx b/vcl/unx/gtk/fpicker/SalGtkPicker.hxx index 6a72e7f61b01..8f4552c03818 100644 --- a/vcl/unx/gtk/fpicker/SalGtkPicker.hxx +++ b/vcl/unx/gtk/fpicker/SalGtkPicker.hxx @@ -66,13 +66,6 @@ class SalGtkPicker OUString getResString( sal_Int32 aId ); }; -class GdkThreadLock -{ -public: - GdkThreadLock() { gdk_threads_enter(); } - ~GdkThreadLock() { gdk_threads_leave(); } -}; - //Run the Gtk Dialog. Watch for any "new windows" created while we're //executing and consider that a CANCEL event to avoid e.g. "file cannot be opened" //modal dialogs and this one getting locked if some other API call causes this diff --git a/vcl/unx/gtk/window/gtksalmenu.cxx b/vcl/unx/gtk/window/gtksalmenu.cxx index 92176b7467fc..09cd44f150d7 100644 --- a/vcl/unx/gtk/window/gtksalmenu.cxx +++ b/vcl/unx/gtk/window/gtksalmenu.cxx @@ -450,17 +450,10 @@ void GtkSalMenu::SetSubMenu( SalMenuItem* pSalMenuItem, SalMenu* pSubMenu, unsig pItem->mpSubMenu = pGtkSubMenu; } -class GdkThreadLock -{ -public: - GdkThreadLock() { gdk_threads_enter(); } - ~GdkThreadLock() { gdk_threads_leave(); } -}; - static bool bInvalidMenus = false; static gboolean RefreshMenusUnity(gpointer) { - GdkThreadLock aLock; + SolarMutexGuard g; SalDisplay* pSalDisplay = GetGenericData()->GetSalDisplay(); std::list< SalFrame* >::const_iterator pSalFrame = pSalDisplay->getFrames().begin(); |