Beispiel #1
0
/* add a capture filter coming from the user's recent file to the cfilter combo box */
gboolean
 cfilter_combo_add_recent(const gchar *s) {
   gchar *dupstr;

   if (s) {
     dupstr = g_strdup(s);
     if (!cfilter_combo_add(dupstr)) {
       g_free(dupstr);
       return FALSE;
     }
   }
   return TRUE;
}
Beispiel #2
0
/* add a capture filter coming from the user's recent file to the cfilter combo box */
gboolean
 cfilter_combo_add_recent(gchar *s) {
   gchar *dup;

   if (s) {
     dup = g_strdup(s);
     if (!cfilter_combo_add(dup)) {
       g_free(dup);
       return FALSE;
     }
   }
   return TRUE;
}