* #13254: gnome: fix address book compilation for gtk3 and crasher bug

This commit is contained in:
Tristan Matthews
2012-07-13 10:17:58 -04:00
parent 977735b64f
commit d0f8e084e4
2 changed files with 2 additions and 3 deletions

View File

@ -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("");

View File

@ -37,7 +37,6 @@
*/
#include <glib.h>
#include <glib/gstring.h>
#include <string.h>
#include <pango/pango.h>
#include "eds.h"