[nemiver] Don't set important Actions on older GTK+s
- From: Dodji Seketeli <dodji src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nemiver] Don't set important Actions on older GTK+s
- Date: Sat, 1 Aug 2009 10:34:10 +0000 (UTC)
commit 60ee41bdd10b71e1d46256b82613b5e9537d7280
Author: Dodji Seketeli <dodji redhat com>
Date: Sat Aug 1 12:30:50 2009 +0200
Don't set important Actions on older GTK+s
* src/uicommon/nmv-ui-utils.h (ActionEntry::to_action):
Gtk::Action::set_is_important didn't exist before GTK+ 2.16.
So don't call it for older versions.
src/uicommon/nmv-ui-utils.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/uicommon/nmv-ui-utils.h b/src/uicommon/nmv-ui-utils.h
index ab68500..29a7395 100644
--- a/src/uicommon/nmv-ui-utils.h
+++ b/src/uicommon/nmv-ui-utils.h
@@ -28,6 +28,7 @@
#ifndef __NEMIVER_UI_UTILS_H__
#define __NEMIVER_UI_UTILS_H__
+#include <gtk/gtk.h>
#include <gtkmm.h>
#include <libglademm.h>
#include "common/nmv-env.h"
@@ -119,9 +120,10 @@ public:
default:
THROW ("should never reach this point");
}
-
+#if (GTK_MAJOR_VERSION >= 2 && GTK_MINOR_VERSION >= 16)
if (result)
result->set_is_important (m_is_important);
+#endif
return result;
}
};//end class ActionEntry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]