diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-01-18 19:59:13 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-01-18 19:59:13 +0000 |
commit | ee0089dfe72b807722f93063a33ba1ecc8f31bc9 (patch) | |
tree | b89fb2d65e4543dcfe5542a34719d06ff2881813 /ui/qt/display_filter_combo.cpp | |
parent | b5193096a98101fb2a67e95136d7f0706a849599 (diff) |
Reflect the changes to make the recent-file code GUI-independent.
svn path=/trunk/; revision=40563
Diffstat (limited to 'ui/qt/display_filter_combo.cpp')
-rw-r--r-- | ui/qt/display_filter_combo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/qt/display_filter_combo.cpp b/ui/qt/display_filter_combo.cpp index 48eaa7aafd..f6c0c718c4 100644 --- a/ui/qt/display_filter_combo.cpp +++ b/ui/qt/display_filter_combo.cpp @@ -24,7 +24,7 @@ #include <stdio.h> #include "qt_ui_utils.h" -#include "ui/gtk/recent.h" +#include "ui/recent.h" #include "display_filter_edit.h" @@ -70,7 +70,7 @@ DisplayFilterCombo::DisplayFilterCombo(QWidget *parent) : completer()->setCompletionMode(QCompleter::PopupCompletion); } -void dfilter_recent_combo_write_all(FILE *rf) { +extern "C" void dfilter_recent_combo_write_all(FILE *rf) { if (!cur_display_filter_combo) return; @@ -89,7 +89,7 @@ void DisplayFilterCombo::writeRecent(FILE *rf) { } } -gboolean dfilter_combo_add_recent(gchar *filter) { +extern "C" gboolean dfilter_combo_add_recent(gchar *filter) { if (!cur_display_filter_combo) return FALSE; @@ -102,12 +102,12 @@ gboolean dfilter_combo_add_recent(gchar *filter) { // xxx - Move to an as-yet-to-be-written capture filter module along with ::addRecentCapture and ::writeRecentCapture QList<QString> cfilters; -gboolean cfilter_combo_add_recent(gchar *filter) { +extern "C" gboolean cfilter_combo_add_recent(gchar *filter) { cfilters.append(filter); return TRUE; } -void cfilter_combo_recent_write_all(FILE *rf) { +extern "C" void cfilter_combo_recent_write_all(FILE *rf) { QString cfilter; foreach (cfilter, cfilters) { |