26 |
#error "Tree not enabled in libxml" |
#error "Tree not enabled in libxml" |
27 |
#endif |
#endif |
28 |
|
|
29 |
|
#ifdef ENABLE_BROWSER_INTERFACE |
30 |
#ifndef USE_HILDON |
#ifndef USE_HILDON |
31 |
#include <libgnome/gnome-url.h> |
#include <libgnome/gnome-url.h> |
32 |
#else |
#else |
51 |
DBUS_TYPE_BOOLEAN, FALSE, DBUS_TYPE_INVALID); |
DBUS_TYPE_BOOLEAN, FALSE, DBUS_TYPE_INVALID); |
52 |
#endif |
#endif |
53 |
} |
} |
54 |
|
#endif |
55 |
|
|
56 |
/* --------------------- presets.xml parsing ----------------------- */ |
/* --------------------- presets.xml parsing ----------------------- */ |
57 |
|
|
442 |
GtkWidget *dialog = NULL; |
GtkWidget *dialog = NULL; |
443 |
gboolean ok = FALSE; |
gboolean ok = FALSE; |
444 |
tag_t *tag = NULL, **ctag = &tag; |
tag_t *tag = NULL, **ctag = &tag; |
445 |
|
#ifdef ENABLE_BROWSER_INTERFACE |
446 |
www_context_t *www_context = NULL; |
www_context_t *www_context = NULL; |
447 |
|
#endif |
448 |
|
|
449 |
printf("dialog for item %s\n", item->name); |
printf("dialog for item %s\n", item->name); |
450 |
|
|
475 |
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, |
GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, |
476 |
NULL); |
NULL); |
477 |
|
|
478 |
|
#ifdef ENABLE_BROWSER_INTERFACE |
479 |
/* if a web link has been provided for this item install */ |
/* if a web link has been provided for this item install */ |
480 |
/* a button for this */ |
/* a button for this */ |
481 |
if(item->link) { |
if(item->link) { |
488 |
gtk_signal_connect(GTK_OBJECT(button), "clicked", |
gtk_signal_connect(GTK_OBJECT(button), "clicked", |
489 |
GTK_SIGNAL_FUNC(on_info), (gpointer)www_context); |
GTK_SIGNAL_FUNC(on_info), (gpointer)www_context); |
490 |
} |
} |
491 |
|
#endif |
492 |
|
|
493 |
/* special handling for the first label/separators */ |
/* special handling for the first label/separators */ |
494 |
guint widget_skip = 0; // number of initial widgets to skip |
guint widget_skip = 0; // number of initial widgets to skip |
677 |
if(interactive_widget_cnt) |
if(interactive_widget_cnt) |
678 |
gtk_widget_destroy(dialog); |
gtk_widget_destroy(dialog); |
679 |
|
|
680 |
|
#ifdef ENABLE_BROWSER_INTERFACE |
681 |
if(www_context) |
if(www_context) |
682 |
g_free(www_context); |
g_free(www_context); |
683 |
|
#endif |
684 |
|
|
685 |
return tag; |
return tag; |
686 |
} |
} |