summaryrefslogtreecommitdiffstats
path: root/linux.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-03 12:56:17 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-03 12:56:17 -0700
commit1a1b392c37fe01a2eff746594ff2f5b4210e52c6 (patch)
treee9861017654d3c2f4eaaf29119acc7f9c9860483 /linux.c
parent1e43106a28900b4e7924ae5060fbe313bdf5c66a (diff)
downloadsubsurface-1a1b392c37fe01a2eff746594ff2f5b4210e52c6.tar.gz
Fix Linux build with newer tool chain
No idea why this builds fine on Fedora 17. Reported-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'linux.c')
-rw-r--r--linux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux.c b/linux.c
index 0c31b6c43..51d1ce75d 100644
--- a/linux.c
+++ b/linux.c
@@ -81,6 +81,7 @@ void subsurface_close_conf(void)
/* this is a no-op */
}
+#if USE_GTK_UI
int subsurface_fill_device_list(GtkListStore *store)
{
int i = 0;
@@ -140,6 +141,7 @@ int subsurface_fill_device_list(GtkListStore *store)
}
return index;
}
+#endif /* USE_GTK_UI */
const char *subsurface_icon_name()
{
@@ -171,11 +173,13 @@ const char *subsurface_gettext_domainpath(char *argv0)
}
}
+#if USE_GTK_UI
void subsurface_ui_setup(GtkSettings *settings, GtkWidget *menubar,
GtkWidget *vbox, GtkUIManager *ui_manager)
{
gtk_box_pack_start(GTK_BOX(vbox), menubar, FALSE, FALSE, 0);
}
+#endif /* USE_GTK_UI */
void subsurface_command_line_init(gint *argc, gchar ***argv)
{
@@ -192,6 +196,7 @@ gboolean subsurface_os_feature_available(os_feature_t f)
return TRUE;
}
+#if USE_GTK_UI
gboolean subsurface_launch_for_uri(const char* uri)
{
GError *err = NULL;
@@ -203,3 +208,4 @@ gboolean subsurface_launch_for_uri(const char* uri)
}
return TRUE;
}
+#endif /* USE_GTK_UI */