Author: post
Date: 2010-01-10 16:18:58 +0100 (Sun, 10 Jan 2010)
New Revision: 2975
Modified:
branches/rawstudio-ng-color/librawstudio/rs-profile-selector.c
branches/rawstudio-ng-color/librawstudio/rs-profile-selector.h
Log:
Allow other interface to select active profile. Don't free list automatically.
Modified: branches/rawstudio-ng-color/librawstudio/rs-profile-selector.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-profile-selector.c
2010-01-07 23:13:57 UTC (rev 2974)
+++ branches/rawstudio-ng-color/librawstudio/rs-profile-selector.c
2010-01-10 15:18:58 UTC (rev 2975)
@@ -105,6 +105,13 @@
}
void
+rs_profile_selector_select_profile(RSProfileSelector *selector, gint index)
+{
+ g_assert(RS_IS_PROFILE_SELECTOR(selector));
+ gtk_combo_box_set_active (&selector->parent, index);
+}
+
+void
rs_profile_selector_set_dcp_profile(RSProfileSelector *selector, RSDcpFile
*dcp)
{
GtkTreeIter iter;
@@ -141,5 +148,4 @@
{
rs_profile_selector_set_profiles(selector, profiles);
- g_list_free(profiles);
}
Modified: branches/rawstudio-ng-color/librawstudio/rs-profile-selector.h
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-profile-selector.h
2010-01-07 23:13:57 UTC (rev 2974)
+++ branches/rawstudio-ng-color/librawstudio/rs-profile-selector.h
2010-01-10 15:18:58 UTC (rev 2975)
@@ -33,6 +33,9 @@
rs_profile_selector_set_profiles(RSProfileSelector *selector, GList *profiles);
void
+rs_profile_selector_select_profile(RSProfileSelector *selector, gint index);
+
+void
rs_profile_selector_set_profiles_steal(RSProfileSelector *selector, GList
*profiles);
G_END_DECLS
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit