Definition in file tools.c.
#include "config.h"
#include <string.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
#include <gtkextra/gtksheet.h>
#include "types.h"
#include "main.h"
#include "tools.h"
#include "dialog_initial.h"
Go to the source code of this file.
Defines | |
#define | ROW_IS_VISIBLE(trow) (tab->view->sheet->row [trow].is_visible) |
Functions | |
static gboolean G_GNUC_UNUSED | tools_find_text (QlTabData *tab, gchar *search) |
static void G_GNUC_UNUSED | tools_match_text (QlTabData *tab, gchar *search) |
static void | tools_button_clicked (GtkAction G_GNUC_UNUSED *w, gpointer G_GNUC_UNUSED data) |
void | tools_find (GtkAction G_GNUC_UNUSED *w, gpointer data) |
void | tools_match (GtkAction G_GNUC_UNUSED *w, gpointer data) |
Variables | |
static GtkWidget * | match_entry |
static GtkWidget * | case_sensitive_check |
static void tools_button_clicked | ( | GtkAction G_GNUC_UNUSED * | w, | |
gpointer G_GNUC_UNUSED | data | |||
) | [static] |
Definition at line 135 of file tools.c.
00136 { 00137 /* QlContext * qlc; 00138 QlTabData * tab; 00139 00140 qlc = ql_get_context (GTK_WIDGET(data)); 00141 tab = ql_get_tabdata (qlc); 00142 00143 if (!strcmp ("Find OK", gtk_widget_get_name (w))) 00144 { 00145 gchar *match_string = g_strdup (gtk_entry_get_text 00146 (GTK_ENTRY (match_entry))); 00147 if (tab->view->current_compare) 00148 g_free (tab->view->current_compare); 00149 tab->view->current_compare = match_string; 00150 if (!tools_find_text (match_string)) 00151 level2_error (_("Nothing found.")); 00152 } 00153 else if (!strcmp ("Match OK", gtk_widget_get_name (w))) 00154 { 00155 gchar *match_string = g_strdup (gtk_entry_get_text 00156 (GTK_ENTRY (match_entry))); 00157 if (tab->view->current_compare) 00158 g_free (tab->view->current_compare); 00159 tab->view->current_compare = match_string; 00160 tools_match_text (tab, match_string); 00161 // cancel_level1 ((GtkWidget *) data, NULL, NULL); 00162 } 00163 else if (!strcmp ("Match Reset", gtk_widget_get_name (w))) 00164 { 00165 tools_match_text (""); 00166 // cancel_level1 ((GtkWidget *) data, NULL, NULL); 00167 } 00168 */ 00169 }