summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f15549)
raw | patch | inline | side by side (parent: 8f15549)
author | bryce <bryce@users.sourceforge.net> | |
Wed, 30 Jan 2008 21:25:22 +0000 (21:25 +0000) | ||
committer | bryce <bryce@users.sourceforge.net> | |
Wed, 30 Jan 2008 21:25:22 +0000 (21:25 +0000) |
src/widgets/desktop-widget.cpp | patch | blob | history | |
src/widgets/sp-color-icc-selector.cpp | patch | blob | history |
index 76452d8515dbf730bc69a3b8065db600f83a5793..146717fc2578dcf55dbce10172f367f9f3481fdd 100644 (file)
void PrefWatcher::hook(EgeColorProfTracker */*tracker*/, gint screen, gint monitor, PrefWatcher */*watcher*/)
{
+#if ENABLE_LCMS
unsigned char* buf = 0;
guint len = 0;
ege_color_prof_tracker_get_profile_for( screen, monitor, reinterpret_cast<gpointer*>(&buf), &len );
Glib::ustring id = Inkscape::colorprofile_set_display_per( buf, len, screen, monitor );
+#endif // ENABLE_LCMS
}
void PrefWatcher::add( SPDesktopWidget* dtw )
}
}
#else
+ {
(void)node;
(void)name;
- (void)new_value;
#endif // ENABLE_LCMS
}
}
gtk_box_pack_start(GTK_BOX(dtw->statusbar), GTK_WIDGET(dtw->layer_selector->gobj()), FALSE, FALSE, 1);
dtw->_tracker = ege_color_prof_tracker_new(GTK_WIDGET(dtw->layer_selector->gobj()));
+#if ENABLE_LCMS
{
Glib::ustring id = Inkscape::colorprofile_get_display_id( 0, 0 );
bool enabled = false;
}
cms_adjust_set_sensitive( dtw, enabled );
}
+#endif // ENABLE_LCMS
g_signal_connect( G_OBJECT(dtw->_tracker), "changed", G_CALLBACK(sp_dtw_color_profile_event), dtw );
dtw->select_status_eventbox = gtk_event_box_new ();
@@ -744,6 +748,7 @@ sp_desktop_widget_event (GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dt
void sp_dtw_color_profile_event(EgeColorProfTracker */*tracker*/, SPDesktopWidget *dtw)
{
+#if ENABLE_LCMS
// Handle profile changes
GdkScreen* screen = gtk_widget_get_screen(GTK_WIDGET(dtw));
gint screenNum = gdk_screen_get_number(screen);
@@ -756,10 +761,12 @@ void sp_dtw_color_profile_event(EgeColorProfTracker */*tracker*/, SPDesktopWidge
enabled = !dtw->canvas->cms_key->empty();
}
cms_adjust_set_sensitive( dtw, enabled );
+#endif // ENABLE_LCMS
}
void cms_adjust_toggled( GtkWidget */*button*/, gpointer data )
{
+#if ENABLE_LCMS
SPDesktopWidget *dtw = SP_DESKTOP_WIDGET(data);
bool down = SP_BUTTON_IS_DOWN(dtw->cms_adjust);
dtw->requestCanvasUpdate();
prefs_set_int_attribute( "options.displayprofile", "enable", down ? 1 : 0 );
}
+#endif // ENABLE_LCMS
}
void cms_adjust_set_sensitive( SPDesktopWidget *dtw, bool enabled )
index 6dcdfc9771c488105399f2d02b4415b51975a8ce..43a2a3cbe7ef7a573aef17ab06cb22e5442976b3 100644 (file)
}
#endif // ENABLE_LCMS
+#ifdef ENABLE_LCMS
void ColorICCSelector::_switchToProfile( gchar const* name )
{
bool dirty = false;
tmp.icc = new SVGICCColor();
}
tmp.icc->colorProfile = name;
-#if ENABLE_LCMS
Inkscape::ColorProfile* newProf = SP_ACTIVE_DOCUMENT->profileManager->find(name);
if ( newProf ) {
cmsHTRANSFORM trans = newProf->getTransfFromSRGB8();
}
}
}
-#endif // ENABLE_LCMS
dirty = true;
}
} else {
#endif // DEBUG_LCMS
}
}
+#endif // ENABLE_LCMS
void ColorICCSelector::_profilesChanged( std::string const & name )
{
+#ifdef ENABLE_LCMS
GtkComboBox* combo = GTK_COMBO_BOX(_profileSel);
g_signal_handler_block( G_OBJECT(_profileSel), _profChangedID );
}
g_signal_handler_unblock( G_OBJECT(_profileSel), _profChangedID );
+#endif // ENABLE_LCMS
}
/* Helpers for setting color value */
}
}
#else
- (void)color;
+ //(void)color;
#endif // ENABLE_LCMS
_updateSliders( -1 );