summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpurple/request-datasheet.c2
-rw-r--r--pidgin/gtkrequest.c5
2 files changed, 2 insertions, 5 deletions
diff --git a/libpurple/request-datasheet.c b/libpurple/request-datasheet.c
index 07234bf005..3c9683212c 100644
--- a/libpurple/request-datasheet.c
+++ b/libpurple/request-datasheet.c
@@ -426,7 +426,7 @@ purple_request_datasheet_record_set_image_data(
purple_request_datasheet_record_set_common_data(rec, col_no, stock_id);
}
-const gchar *
+static const gchar *
purple_request_datasheet_record_get_common_data(
const PurpleRequestDatasheetRecord *rec, guint col_no)
{
diff --git a/pidgin/gtkrequest.c b/pidgin/gtkrequest.c
index 68b2f40eba..afe4423219 100644
--- a/pidgin/gtkrequest.c
+++ b/pidgin/gtkrequest.c
@@ -1686,13 +1686,10 @@ datasheet_button_check_sens(GtkWidget *button, gpointer _sheet_widget)
static void
datasheet_selection_changed(GtkWidget *sheet_widget)
{
- PurpleRequestDatasheetRecord *rec;
GtkVBox *buttons_box;
g_return_if_fail(sheet_widget != NULL);
- rec = datasheet_get_selected_row(sheet_widget);
-
buttons_box = GTK_VBOX(g_object_get_data(G_OBJECT(sheet_widget),
"buttons"));
gtk_container_foreach(GTK_CONTAINER(buttons_box),
@@ -1887,7 +1884,7 @@ create_datasheet_field(PurpleRequestField *field, GtkSizeGroup *buttons_sg)
for (i = 0; i < col_count; i++) {
PurpleRequestDatasheetColumnType type;
const gchar *title;
- GtkCellRenderer *renderer;
+ GtkCellRenderer *renderer = NULL;
const gchar *type_str = "";
type = purple_request_datasheet_get_column_type(sheet, i);