Author: akv
Date: 2010-01-02 03:21:58 +0100 (Sat, 02 Jan 2010)
New Revision: 2961
Modified:
branches/rawstudio-ng-color/librawstudio/rs-lens-db-editor.c
Log:
Added lensfun updater to lens editor. This still nededs a bit of work. It's
added as a button to the dialog which closes the dialog. A new lens editor is
opened when update is done.
Modified: branches/rawstudio-ng-color/librawstudio/rs-lens-db-editor.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-lens-db-editor.c
2010-01-02 02:00:38 UTC (rev 2960)
+++ branches/rawstudio-ng-color/librawstudio/rs-lens-db-editor.c
2010-01-02 02:21:58 UTC (rev 2961)
@@ -415,6 +415,13 @@
}
void
+update_lensfun(GtkButton *button, gpointer user_data)
+{
+ rs_lens_db_editor_update_lensfun();
+ rs_lens_db_editor();
+}
+
+void
rs_lens_db_editor()
{
GtkTreeModel *tree_model = GTK_TREE_MODEL(gtk_list_store_new(10,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, G_TYPE_OBJECT));
@@ -507,6 +514,10 @@
gtk_box_pack_start (GTK_BOX (GTK_DIALOG(editor)->vbox), frame, TRUE,
TRUE, 0);
+ GtkWidget *button_update_lensfun = gtk_button_new_with_label(_("Update
lensfun database"));
+ g_signal_connect(button_update_lensfun, "clicked",
G_CALLBACK(update_lensfun), NULL);
+ gtk_dialog_add_action_widget (GTK_DIALOG (editor),
button_update_lensfun, GTK_RESPONSE_NONE);
+
GtkWidget *button_close = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
gtk_dialog_add_action_widget (GTK_DIALOG (editor), button_close,
GTK_RESPONSE_CLOSE);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit