Use accessor for common preferences in all plugins.
[claws.git] / src / plugins / geolocation / geolocation_plugin.c
index ed5fc87d97b779152756890e4b59e57d7350c4b0..158d82524c9132735258813297cd1d9182a9e8de 100644 (file)
@@ -488,7 +488,7 @@ static gboolean my_messageview_show_hook(gpointer source, gpointer data)
   }
 
   /* do nothing except hiding the button if claws mail is in offline mode */
-  if(prefs_common.work_offline) {
+  if(prefs_common_get_prefs()->work_offline) {
     gtk_widget_hide(container);
     return FALSE;
   }