[Openvas-commits] r3141 - in trunk/openvas-client: . src/gui
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Apr 20 12:37:43 CEST 2009
Author: felix
Date: 2009-04-20 12:37:42 +0200 (Mon, 20 Apr 2009)
New Revision: 3141
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/src/gui/treeview_support.c
trunk/openvas-client/src/gui/treeview_support.h
Log:
Minor reformatting, USE_GTK guard to enable compilation without gtk.
* src/gui/treeview_support.c, src/gui/treeview_support.c: Minor style,
documentation, added USE_GTK guard.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-04-20 10:35:06 UTC (rev 3140)
+++ trunk/openvas-client/ChangeLog 2009-04-20 10:37:42 UTC (rev 3141)
@@ -1,5 +1,12 @@
2009-04-20 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ Minor reformatting, USE_GTK guard to enable compilation without gtk.
+
+ * src/gui/treeview_support.c, src/gui/treeview_support.c: Minor style,
+ documentation, added USE_GTK guard.
+
+2009-04-20 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
Reformatted, removed define-conditionals around rpm export code.
* src/gui/ssh_keys_dialog.c: Style, removed DEV_SSH_RPM_EXPORT- define
Modified: trunk/openvas-client/src/gui/treeview_support.c
===================================================================
--- trunk/openvas-client/src/gui/treeview_support.c 2009-04-20 10:35:06 UTC (rev 3140)
+++ trunk/openvas-client/src/gui/treeview_support.c 2009-04-20 10:37:42 UTC (rev 3141)
@@ -33,12 +33,17 @@
* wish to do so, delete this exception statement from your version.
*/
+#ifdef USE_GTK
+
#include <gtk/gtk.h>
-/* Called whenever a key is pressed. If cursor right is pressed
- * expand actual row, cursor left collapse row */
-gboolean onKeypressed(GtkWidget *treeview, GdkEventKey *event,
- gpointer user_data)
+/**
+ * @brief Callback for key presses.
+ *
+ * If cursor right is pressed expand actual row, cursor left collapse row
+ */
+gboolean
+onKeypressed (GtkWidget *treeview, GdkEventKey *event, gpointer user_data)
{
if((event->type == GDK_KEY_PRESS))
{
@@ -56,3 +61,5 @@
}
return FALSE;
}
+
+#endif /* USE_GTK */
Modified: trunk/openvas-client/src/gui/treeview_support.h
===================================================================
--- trunk/openvas-client/src/gui/treeview_support.h 2009-04-20 10:35:06 UTC (rev 3140)
+++ trunk/openvas-client/src/gui/treeview_support.h 2009-04-20 10:37:42 UTC (rev 3141)
@@ -36,7 +36,11 @@
#ifndef TREEVIEW_SUPPORT_H__
#define TREEVIEW_SUPPORT_H__
+#ifdef USE_GTK
+
gboolean onKeypressed(GtkWidget *treeview, GdkEventKey *event,
gpointer user_data);
-#endif
+#endif /* USE_GTK */
+
+#endif /* TREEVIEW_SUPPORT_H__ */
More information about the Openvas-commits
mailing list