summaryrefslogtreecommitdiff
path: root/mixgtk/mixgtk_mixal.c
diff options
context:
space:
mode:
Diffstat (limited to 'mixgtk/mixgtk_mixal.c')
-rw-r--r--mixgtk/mixgtk_mixal.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c
index 5470eb8..cb09b70 100644
--- a/mixgtk/mixgtk_mixal.c
+++ b/mixgtk/mixgtk_mixal.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mixgtk_mixal.c :
* Implementation of the functions declared in mixgtk_mixal.h
* ------------------------------------------------------------------
- * Copyright (C) 2001, 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+ * Copyright (C) 2001, 2002, 2004, 2006, 2007, 2019, 2020 Free Software Foundation, Inc.
*
* 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
@@ -42,8 +42,8 @@ static GtkTreeView *symbols_view_ = NULL;
static GtkListStore *symbols_store_ = NULL;
static const gchar *SYMBOLS_VIEW_NAME_ = "symbols_view";
-static const gchar *bp_stock_id_ = NULL;
-static const gchar *pc_stock_id_ = NULL;
+static const gchar *bp_stock_id_ = "gtk-stop";
+static const gchar *pc_stock_id_ = "gtk-go-forward";
static const guint bp_stock_size_ = GTK_ICON_SIZE_MENU;
enum {
@@ -77,8 +77,7 @@ init_symbols_ (void)
symbols_dlg_ = mixgtk_widget_factory_get_dialog (MIXGTK_SYMBOLS_DIALOG);
g_assert (symbols_dlg_);
symbols_view_ = GTK_TREE_VIEW
- (mixgtk_widget_factory_get_child_by_name
- (MIXGTK_SYMBOLS_DIALOG, SYMBOLS_VIEW_NAME_));
+ (mixgtk_widget_factory_get_by_name (SYMBOLS_VIEW_NAME_));
g_assert (symbols_view_);
mixgtk_fontsel_set_font (MIX_FONT_SYMBOLS, GTK_WIDGET (symbols_view_));
@@ -148,7 +147,6 @@ fill_symbols_ (const mix_symbol_table_t *table)
static void
init_clist_ (void)
{
- GtkStockItem item;
GtkCellRenderer *renderer = gtk_cell_renderer_text_new ();
GtkCellRenderer *bprenderer = gtk_cell_renderer_pixbuf_new ();
@@ -166,7 +164,7 @@ init_clist_ (void)
gtk_tree_view_set_model (clist_, GTK_TREE_MODEL (clist_store_));
g_object_unref (G_OBJECT (clist_store_));
- gtk_tree_view_set_rules_hint (clist_, TRUE);
+ // gtk_tree_view_set_rules_hint (clist_, TRUE);
gtk_tree_view_append_column
(clist_,
@@ -190,16 +188,6 @@ init_clist_ (void)
"text", CLIST_CODE_COL,
NULL));
- if (gtk_stock_lookup (GTK_STOCK_STOP, &item))
- {
- bp_stock_id_ = item.stock_id;
- }
-
- if (gtk_stock_lookup (GTK_STOCK_GO_FORWARD, &item))
- {
- pc_stock_id_ = item.stock_id;
- }
-
symbols_dlg_ = NULL;
symbols_view_ = NULL;