Code

i18n. Fix for bug #601522 (embedding prompt dialog's caption is not translated).
[inkscape.git] / src / extension / timer.h
index b9649e899e7cce5c5c296716261ab311d915d79f..ebae62b245136c368844721f8bc4cb6540b2aa4b 100644 (file)
@@ -31,7 +31,7 @@ class ExpirationTimer {
     static bool timer_started;
 
     /** \brief Is this extension locked from being unloaded? */
-    bool locked;
+    int locked;
     /** \brief Next entry in the list */
     ExpirationTimer * next;
     /** \brief When this timer expires */
@@ -46,11 +46,11 @@ class ExpirationTimer {
 
 public:
     ExpirationTimer(Extension * in_extension);
-    ~ExpirationTimer(void);
+    virtual ~ExpirationTimer(void);
 
     void touch (void);
-    void lock (void)   { locked = true;  };
-    void unlock (void) { locked = false; };
+    void lock (void)   { locked++;  };
+    void unlock (void) { locked--; };
 
     /** \brief Set the timeout variable */
     static void set_timeout (long in_seconds) { timeout = in_seconds; };