From 5074bb82df6c0c4d78ac61c289f5c4166a08c555 Mon Sep 17 00:00:00 2001
From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com>
Date: Sat, 30 Aug 2008 01:14:18 -0500
Subject: [PATCH] Removed use-default-font preference
---
moo.mprj | 6 ++
moo/mooedit/glade/mooeditprefs-general.glade | 65 ++++++++------------
moo/mooedit/mooeditprefs.c | 9 +--
moo/mooedit/mooeditprefs.h | 1 -
4 files changed, 32 insertions(+), 49 deletions(-)
diff --git a/moo.mprj b/moo.mprj
index ba85861d..7e7773f9 100644
--- a/moo.mprj
+++ b/moo.mprj
@@ -9,6 +9,12 @@
build/debug
--enable-debug --enable-all-warnings --enable-project --prefix=${PREFIX:-/usr/local}
+
+ gcc-4.2
+ -g
+ g++-4.2
+ -g
+
diff --git a/moo/mooedit/glade/mooeditprefs-general.glade b/moo/mooedit/glade/mooeditprefs-general.glade
index 640a7f18..fe9a21cc 100644
--- a/moo/mooedit/glade/mooeditprefs-general.glade
+++ b/moo/mooedit/glade/mooeditprefs-general.glade
@@ -122,31 +122,13 @@
6
6
-
- True
- indent_width
- 4 1 100 1 10 10
- 1
- True
-
-
- 1
- 2
- 1
- 2
-
-
-
-
-
+
True
1
- Indent width:
- indent_width
+ Tab width:
+ tab_width
- 1
- 2
GTK_FILL
@@ -166,16 +148,34 @@
-
+
True
1
- Tab width:
- tab_width
+ Indent width:
+ indent_width
+ 1
+ 2
GTK_FILL
+
+
+ True
+ indent_width
+ 4 1 100 1 10 10
+ 1
+ True
+
+
+ 1
+ 2
+ 1
+ 2
+
+
+
5
@@ -269,20 +269,6 @@
True
6
-
-
- True
- use_default_font
- Use default theme font
- True
- 0
- True
-
-
- False
- False
-
-
True
@@ -293,7 +279,6 @@
True
- !use_default_font
1
Font:
@@ -332,7 +317,6 @@
True
font
- !use_default_font
0
True
True
@@ -346,7 +330,6 @@
False
- 1
diff --git a/moo/mooedit/mooeditprefs.c b/moo/mooedit/mooeditprefs.c
index 6ad7de6d..8081bb06 100644
--- a/moo/mooedit/mooeditprefs.c
+++ b/moo/mooedit/mooeditprefs.c
@@ -127,7 +127,6 @@ _moo_edit_init_prefs (void)
NEW_KEY_BOOL (MOO_EDIT_PREFS_SHOW_LINE_NUMBERS, FALSE);
NEW_KEY_BOOL (MOO_EDIT_PREFS_SHOW_TABS, FALSE);
NEW_KEY_BOOL (MOO_EDIT_PREFS_SHOW_TRAILING_SPACES, FALSE);
- NEW_KEY_BOOL (MOO_EDIT_PREFS_USE_DEFAULT_FONT, FALSE);
NEW_KEY_STRING (MOO_EDIT_PREFS_FONT, "Monospace");
NEW_KEY_FLAGS (MOO_EDIT_PREFS_QUICK_SEARCH_FLAGS,
MOO_TYPE_TEXT_SEARCH_FLAGS,
@@ -210,12 +209,8 @@ _moo_edit_apply_prefs (MooEdit *edit)
"backspace-indents", get_bool (MOO_EDIT_PREFS_BACKSPACE_INDENTS),
NULL);
- if (get_bool (MOO_EDIT_PREFS_USE_DEFAULT_FONT))
- moo_text_view_set_font_from_string (MOO_TEXT_VIEW (edit), NULL);
- else
- moo_text_view_set_font_from_string (MOO_TEXT_VIEW (edit),
- get_string (MOO_EDIT_PREFS_FONT));
-
+ moo_text_view_set_font_from_string (MOO_TEXT_VIEW (edit),
+ get_string (MOO_EDIT_PREFS_FONT));
_moo_text_view_set_line_numbers_font (MOO_TEXT_VIEW (edit),
get_string (MOO_EDIT_PREFS_LINE_NUMBERS_FONT));
diff --git a/moo/mooedit/mooeditprefs.h b/moo/mooedit/mooeditprefs.h
index 78ca13b1..379e3490 100644
--- a/moo/mooedit/mooeditprefs.h
+++ b/moo/mooedit/mooeditprefs.h
@@ -61,7 +61,6 @@ const char *moo_edit_setting (const char *setting_name);
#define MOO_EDIT_PREFS_SHOW_LINE_NUMBERS "show_line_numbers"
#define MOO_EDIT_PREFS_SHOW_TABS "show_tabs"
#define MOO_EDIT_PREFS_SHOW_TRAILING_SPACES "show_trailing_spaces"
-#define MOO_EDIT_PREFS_USE_DEFAULT_FONT "use_default_font"
#define MOO_EDIT_PREFS_FONT "font"
#define MOO_EDIT_PREFS_LINE_NUMBERS_FONT "line_numbers_font"