No issues found
1 #include "rb-uri-dialog.h"
2 #include "rb-file-helpers.h"
3
4 static void
5 location_added (RBURIDialog *dialog,
6 const char *uri,
7 gpointer user_data)
8 {
9 g_message ("URI selected was: %s", uri);
10 }
11
12 int main (int argc, char **argv)
13 {
14 GtkWidget *dialog;
15
16 gtk_init (&argc, &argv);
17 rb_file_helpers_init (TRUE);
18
19 dialog = rb_uri_dialog_new ("Dialog title", "dialog label");
20 g_signal_connect (G_OBJECT (dialog), "location-added",
21 G_CALLBACK (location_added), NULL);
22
23 gtk_dialog_run (GTK_DIALOG (dialog));
24
25 gtk_widget_destroy (dialog);
26
27 return 0;
28 }