summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/view/view-widget.cpp4
-rw-r--r--src/ui/widget/selected-style.cpp8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/view/view-widget.cpp b/src/ui/view/view-widget.cpp
index d1f9d677c..cf0f55f2c 100644
--- a/src/ui/view/view-widget.cpp
+++ b/src/ui/view/view-widget.cpp
@@ -30,7 +30,9 @@ static GtkEventBoxClass *widget_parent_class;
GtkType sp_view_widget_get_type(void)
{
static GtkType type = 0;
-
+ //TODO: switch to GObject
+ // GtkType and such calls were deprecated a while back with the
+ // introduction of GObject as a separate layer, with GType instead. --JonCruz
if (!type) {
GtkTypeInfo info = {
(gchar*) "SPViewWidget",
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
index 90ef79b92..9a5364874 100644
--- a/src/ui/widget/selected-style.cpp
+++ b/src/ui/widget/selected-style.cpp
@@ -86,8 +86,14 @@ typedef enum {
APP_X_COLOR
} ui_drop_target_info;
+//TODO: warning: deprecated conversion from string constant to ‘gchar*’
+//
+//Turn out to be warnings that we should probably leave in place. The
+// pointers/types used need to be read-only. So until we correct the using
+// code, those warnings are actually desired. They say "Hey! Fix this". We
+// definitely don't want to hide/ignore them. --JonCruz
static GtkTargetEntry ui_drop_target_entries [] = {
- {(gchar*) "application/x-color", 0, APP_X_COLOR}
+ {"application/x-color", 0, APP_X_COLOR}
};
#define ENTRIES_SIZE(n) sizeof(n)/sizeof(n[0])