[vte] app: Fix parsing of boolean options
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] app: Fix parsing of boolean options
- Date: Tue, 26 Sep 2017 11:07:30 +0000 (UTC)
commit b2e9df861e9717c04824b52d4a6c41fcb2de2baf
Author: Christian Persch <chpe src gnome org>
Date: Tue Sep 26 13:06:59 2017 +0200
app: Fix parsing of boolean options
Need to use a gboolean for the struct member, since
GOption expects a gboolean (aka int) not a bool.
src/app/app.cc | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/src/app/app.cc b/src/app/app.cc
index 4b3fc95..bc66cd9 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -34,28 +34,28 @@
class Options {
public:
- bool allow_window_ops{false};
- bool audible_bell{false};
- bool console{false};
+ gboolean allow_window_ops{false};
+ gboolean audible_bell{false};
+ gboolean console{false};
+ gboolean debug{false};
+ gboolean icon_title{false};
+ gboolean keep{false};
+ gboolean no_argb_visual{false};
+ gboolean no_builtin_dingus{false};
+ gboolean no_context_menu{false};
+ gboolean no_double_buffer{false};
+ gboolean no_geometry_hints{false};
+ gboolean no_hyperlink{false};
+ gboolean no_rewrap{false};
+ gboolean no_shell{false};
+ gboolean object_notifications{false};
+ gboolean reverse{false};
+ gboolean use_gregex{false};
+ gboolean version{false};
bool cursor_bg_color_set{false};
bool cursor_fg_color_set{false};
- bool debug{false};
bool hl_bg_color_set{false};
bool hl_fg_color_set{false};
- bool icon_title{false};
- bool keep{false};
- bool no_argb_visual{false};
- bool no_builtin_dingus{false};
- bool no_context_menu{false};
- bool no_double_buffer{false};
- bool no_geometry_hints{false};
- bool no_hyperlink{false};
- bool no_rewrap{false};
- bool no_shell{false};
- bool object_notifications{false};
- bool reverse{false};
- bool use_gregex{false};
- bool version{false};
char* command{nullptr};
char* encoding{nullptr};
char* font_string{nullptr};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]