mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
* #13254: gnome: fix address book compilation for gtk3 and crasher bug
This commit is contained in:
@ -76,7 +76,8 @@ void searchbar_entry_changed(GtkEntry* entry UNUSED, gchar* arg1 UNUSED, gpointe
|
||||
static gchar *get_combobox_active_text(GtkWidget *widget)
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter);
|
||||
if (!gtk_combo_box_get_active_iter(GTK_COMBO_BOX(widget), &iter))
|
||||
return NULL;
|
||||
GtkTreeModel *model = gtk_combo_box_get_model(GTK_COMBO_BOX(widget));
|
||||
gchar *string = NULL;
|
||||
/* this will return a strdup'd string of the text for the active
|
||||
@ -128,7 +129,6 @@ void update_searchbar_addressbook_list()
|
||||
// store the current active text
|
||||
gchar *activeText = get_combobox_active_text(cbox);
|
||||
|
||||
|
||||
if (activeText == NULL)
|
||||
activeText = g_strdup("");
|
||||
|
||||
|
@ -37,7 +37,6 @@
|
||||
*/
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib/gstring.h>
|
||||
#include <string.h>
|
||||
#include <pango/pango.h>
|
||||
#include "eds.h"
|
||||
|
Reference in New Issue
Block a user