aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/prefs_filter_expressions.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-07-01 14:32:08 +0000
committerBill Meier <wmeier@newsguy.com>2013-07-01 14:32:08 +0000
commit43442af8e3d31ed5561e0d1120f6350bc6261c51 (patch)
treec9d2eb023accf7f26a46ed931124e2a1d21ae804 /ui/gtk/prefs_filter_expressions.c
parentee52f06db9de9cc4533ca279caa2eb1f67fff93e (diff)
Define certain 'const char *...' arrays as static.
(That is: Don't create the array on the stack each time the function is called). Reduces code memory usage and execution time. (See SVN #50271) svn path=/trunk/; revision=50295
Diffstat (limited to 'ui/gtk/prefs_filter_expressions.c')
-rw-r--r--ui/gtk/prefs_filter_expressions.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/ui/gtk/prefs_filter_expressions.c b/ui/gtk/prefs_filter_expressions.c
index cada917..b0264de 100644
--- a/ui/gtk/prefs_filter_expressions.c
+++ b/ui/gtk/prefs_filter_expressions.c
@@ -87,18 +87,18 @@ enable_toggled(GtkCellRendererToggle *cell _U_, gchar *path_str, gpointer data)
*/
GtkWidget *
filter_expressions_prefs_show(void) {
- GtkWidget *main_vb, *bottom_hb, *column_l, *add_bt, *remove_bt;
- GtkWidget *list_vb, *list_lb, *list_sc;
- GtkWidget *add_remove_hb;
- GtkListStore *store;
- GtkCellRenderer *renderer;
- GtkTreeViewColumn *column;
- GtkTreeSelection *sel;
- GtkTreeIter iter;
- GtkTreeIter first_iter;
- gint first_row = TRUE;
+ GtkWidget *main_vb, *bottom_hb, *column_l, *add_bt, *remove_bt;
+ GtkWidget *list_vb, *list_lb, *list_sc;
+ GtkWidget *add_remove_hb;
+ GtkListStore *store;
+ GtkCellRenderer *renderer;
+ GtkTreeViewColumn *column;
+ GtkTreeSelection *sel;
+ GtkTreeIter iter;
+ GtkTreeIter first_iter;
+ gint first_row = TRUE;
struct filter_expression *fe;
- const gchar *column_titles[] = {"Enabled", "Label", "Filter Expression"};
+ static const gchar *column_titles[] = {"Enabled", "Label", "Filter Expression"};
/* Container for each row of widgets */
main_vb = ws_gtk_box_new(GTK_ORIENTATION_VERTICAL, 5, FALSE);