summaryrefslogtreecommitdiffstats
path: root/src/widgets/font-selector.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-03-03 22:17:21 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-03-03 22:17:21 +0000
commitf5f95da9b90081aadaf4f939a5fd8512ecd941b7 (patch)
tree9be295ce3ab7727c41a1fe00ce00317b8d9ebc8c /src/widgets/font-selector.cpp
parentBSpline refactor (diff)
parentUpdate from branch (diff)
downloadinkscape-f5f95da9b90081aadaf4f939a5fd8512ecd941b7.tar.gz
inkscape-f5f95da9b90081aadaf4f939a5fd8512ecd941b7.zip
Spiro refactor
(bzr r11950.1.42)
Diffstat (limited to 'src/widgets/font-selector.cpp')
-rw-r--r--src/widgets/font-selector.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/widgets/font-selector.cpp b/src/widgets/font-selector.cpp
index 013ad9e94..59fe25fa1 100644
--- a/src/widgets/font-selector.cpp
+++ b/src/widgets/font-selector.cpp
@@ -51,8 +51,6 @@ struct SPFontSelector
NRNameList families;
NRStyleList styles;
- int familyidx;
- int styleidx;
gfloat fontsize;
bool fontsize_dirty;
font_instance *font;
@@ -246,9 +244,7 @@ static void sp_font_selector_init(SPFontSelector *fsel)
gtk_widget_show_all (fsel->size);
- fsel->familyidx = 0;
- fsel->styleidx = 0;
- fsel->fontsize = 10.0;
+ fsel->fontsize = 18.0;
fsel->fontsize_dirty = false;
fsel->font = NULL;
}
@@ -290,8 +286,6 @@ static void sp_font_selector_family_select_row(GtkTreeSelection *selection,
path = gtk_tree_model_get_path (model, &iter);
gtk_tree_model_get (model, &iter, 1, &list, -1);
- fsel->familyidx = gtk_tree_path_get_indices (path)[0];
- fsel->styleidx = 0;
store = gtk_list_store_new (1, G_TYPE_STRING);
@@ -318,7 +312,6 @@ static void sp_font_selector_style_select_row (GtkTreeSelection *selection,
if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return;
path = gtk_tree_model_get_path (model, &iter);
- fsel->styleidx = gtk_tree_path_get_indices (path)[0];
if (!fsel->block_emit)
{