/*
- * Geeqie
- * (C) 2004 John Ellis
- * Copyright (C) 2008 The Geeqie Team
+ * Copyright (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
*
* Author: John Ellis
*
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "main.h"
{
GtkListStore *store;
GtkTreeIter iter;
- gint valid;
+ gboolean valid;
gint n;
store = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(lc->listview)));
{
GtkTreeModel *store;
GtkTreeIter iter;
- gint valid;
+ gboolean valid;
gint c = 0;
store = gtk_tree_view_get_model(GTK_TREE_VIEW(lc->listview));
button = gtk_button_new_with_label(text);
gtk_widget_set_sensitive(button, FALSE);
- GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_FOCUS);
+ gtk_widget_set_can_focus(button, FALSE);
gtk_table_attach_defaults(GTK_TABLE(table), button, x1, x2, y1, y2);
gtk_widget_show(button);
}
return group;
}
-#if 0
-static void layout_config_row_move(GtkWidget *clist, gint source_row, gint dest_row, gpointer data)
-{
- gchar *text;
- gint i;
-
- for (i = 0; i < 3; i++)
- {
- text = g_strdup_printf("%d", i + 1);
- gtk_clist_set_text(GTK_CLIST(clist), i, 0, text);
- g_free(text);
- }
-}
-#endif
-
static void layout_config_number_cb(GtkTreeViewColumn *tree_column, GtkCellRenderer *cell,
GtkTreeModel *store, GtkTreeIter *iter, gpointer data)
{
return lc->box;
}
-static char num_to_text_char(gint n)
+static gchar num_to_text_char(gint n)
{
switch (n)
{
*c = text_char_to_num(text, 2);
}
}
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */