"-G" flag, as the "-G" flag dumps information registered by the
dissectors, and we must do it before we read the preferences, in
case any dissectors register preferences. */
- epan_init(register_all_protocols,register_all_protocol_handoffs,
+ epan_init(register_all_protocols,register_all_protocol_handoffs,
splash_update, (gpointer) splash_win,
failure_alert_box,open_failure_alert_box,read_failure_alert_box);
font_init();
/* close the splash screen, as we are going to open the main window now */
- splash_destroy(splash_win);
+ splash_destroy(splash_win);
/************************************************************************/
/* Everything is prepared now, preferences and command line was read in */
/* XXX - There seems to be some disagreement about if and how this feature should be implemented.
As I currently don't have the time to continue this, it's temporarily disabled. - ULFL */
GtkWidget *
-welcome_item(const gchar *stock_item, const gchar * label, const gchar * message, const gchar * tooltip,
+welcome_item(const gchar *stock_item, const gchar * label, const gchar * message, const gchar * tooltip,
GtkSignalFunc callback, void *callback_data)
{
GtkWidget *w, *item_hb;
{
gchar *message;
GtkWidget *w = user_data;
-
+
message = g_strdup_printf("<span foreground='blue' underline='single'>%s</span>", OBJECT_GET_DATA(w,"TEXT"));
#if GTK_MAJOR_VERSION >= 2
gtk_label_set_markup(GTK_LABEL(w), message);
static gboolean
welcome_link_leave_cb(GtkWidget *widget _U_, GdkEvent *event _U_, gpointer user_data)
-{
+{
gchar *message;
GtkWidget *w = user_data;
-
+
message = g_strdup_printf("<span foreground='blue'>%s</span>", OBJECT_GET_DATA(w,"TEXT"));
#if GTK_MAJOR_VERSION >= 2
gtk_label_set_markup(GTK_LABEL(w), message);
static gboolean
welcome_link_press_cb(GtkWidget *widget _U_, GdkEvent *event _U_, gpointer data _U_) {
-
+
g_warning("TBD: link pressed");
return FALSE;
gtk_box_pack_start(GTK_BOX(topic_to_fill), w, FALSE, FALSE, 0);
w = welcome_filename_link_new(
- "C:\\Testfiles\\to avoid screen garbage\\Unfortunately this is a very long filename which had to be truncated.pcap",
+ "C:\\Testfiles\\to avoid screen garbage\\Unfortunately this is a very long filename which had to be truncated.pcap",
&label);
#if GTK_MAJOR_VERSION >= 2
gtk_widget_modify_bg(w, GTK_STATE_NORMAL, &topic_bg);
#endif /* HAVE_AIRPCAP */
#if GTK_MAJOR_VERSION >= 2
+#define NO_SHIFT_MOD_MASK (GDK_MODIFIER_MASK & ~(GDK_SHIFT_MASK|GDK_LOCK_MASK))
static int
top_level_key_pressed_cb(GtkCTree *ctree _U_, GdkEventKey *event, gpointer user_data _U_)
{
} else if (event->keyval == GDK_F7) {
packet_list_prev();
return TRUE;
+ } else if (event->keyval | NO_SHIFT_MOD_MASK) {
+ return FALSE; /* Skip control, alt, and other modifiers */
/*
* A comment in gdkkeysyms.h says that it's autogenerated from
* freedesktop.org/x.org's keysymdef.h. Although the GDK docs