summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-10-03 21:35:23 +0000
committerjabiertxof <info@marker.es>2016-10-03 21:35:23 +0000
commit67fa2b7c2a26e909b1adb5fb188285367dfba7e4 (patch)
tree83fc014c6907d8273f77646225d7cbe8854be85f /src
parentUpdate to trunk (diff)
downloadinkscape-67fa2b7c2a26e909b1adb5fb188285367dfba7e4.tar.gz
inkscape-67fa2b7c2a26e909b1adb5fb188285367dfba7e4.zip
Fix merge bugs
(bzr r15017.1.36)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-measure-line.cpp5
-rw-r--r--src/widgets/font-selector.cpp7
-rw-r--r--src/widgets/font-selector.h24
3 files changed, 6 insertions, 30 deletions
diff --git a/src/live_effects/lpe-measure-line.cpp b/src/live_effects/lpe-measure-line.cpp
index 04085015c..6e77931b0 100644
--- a/src/live_effects/lpe-measure-line.cpp
+++ b/src/live_effects/lpe-measure-line.cpp
@@ -161,6 +161,11 @@ LPEMeasureLine::LPEMeasureLine(LivePathEffectObject *lpeobject) :
LPEMeasureLine::~LPEMeasureLine() {}
+void swap(Geom::Point &A, Geom::Point &B){
+ Geom::Point tmp = A;
+ A = B;
+ B = tmp;
+}
void
LPEMeasureLine::doOnApply(SPLPEItem const* lpeitem)
{
diff --git a/src/widgets/font-selector.cpp b/src/widgets/font-selector.cpp
index e9cf66621..f400de89c 100644
--- a/src/widgets/font-selector.cpp
+++ b/src/widgets/font-selector.cpp
@@ -19,10 +19,6 @@
#include <config.h>
#endif
-#include <2geom/transforms.h>
-
-#include <gtk/gtk.h>
-
#include <libnrtype/font-lister.h>
#include <libnrtype/font-instance.h>
@@ -33,7 +29,6 @@
/* SPFontSelector */
-
struct SPFontSelector
{
GtkBox hbox;
@@ -55,7 +50,6 @@ struct SPFontSelector
};
-
struct SPFontSelectorClass
{
GtkBoxClass parent_class;
@@ -251,7 +245,6 @@ static void sp_font_selector_dispose(GObject *object)
if (fsel->fontspec) {
delete fsel->fontspec;
- fsel->fontspec = 0;
}
if (fsel->families.length > 0) {
diff --git a/src/widgets/font-selector.h b/src/widgets/font-selector.h
index e8e0af079..ff5472d2d 100644
--- a/src/widgets/font-selector.h
+++ b/src/widgets/font-selector.h
@@ -18,29 +18,7 @@
#include <glib.h>
-struct SPFontSelector
-{
-#if GTK_CHECK_VERSION(3,0,0)
- GtkBox hbox;
-#else
- GtkHBox hbox;
-#endif
-
- unsigned int block_emit : 1;
-
- GtkWidget *family;
- GtkWidget *style;
- GtkWidget *size;
-
- GtkWidget *family_treeview;
- GtkWidget *style_treeview;
-
- NRNameList families;
- NRStyleList styles;
- gfloat fontsize;
- bool fontsize_dirty;
- Glib::ustring *fontspec;
-};
+struct SPFontSelector;
#define SP_TYPE_FONT_SELECTOR (sp_font_selector_get_type ())
#define SP_FONT_SELECTOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), SP_TYPE_FONT_SELECTOR, SPFontSelector))