From b66baaeceb5c9d666ad8807a6f9fc4567187d50d Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 11 Mar 2019 02:47:29 +0000 Subject: Work in progress --- mixgtk/mixgtk.glade | 88 ++++++++++++++++++++++++-------------------- mixgtk/mixgtk.gladep | 9 ----- mixgtk/mixgtk_device.c | 7 ++-- mixgtk/mixgtk_fontsel.c | 5 ++- mixgtk/mixgtk_gen_handlers.c | 8 ++-- mixgtk/mixgtk_mixal.c | 20 +++++----- 6 files changed, 68 insertions(+), 69 deletions(-) delete mode 100644 mixgtk/mixgtk.gladep diff --git a/mixgtk/mixgtk.glade b/mixgtk/mixgtk.glade index 20996ae..e2f79a9 100644 --- a/mixgtk/mixgtk.glade +++ b/mixgtk/mixgtk.glade @@ -1,7 +1,7 @@ - + False 2 @@ -65,10 +65,11 @@ True False - + True False 15 + vertical 10 @@ -232,7 +233,7 @@ Free Software Foundation, Inc</small> - + True False 25 @@ -368,9 +369,6 @@ Free Software Foundation, Inc</small> 0 - - - True @@ -387,8 +385,8 @@ Free Software Foundation, Inc</small> - 233 - 31 + 241 + 34 @@ -419,6 +417,19 @@ Free Software Foundation, Inc</small> 38 + + + 200 + 15 + True + True + 16 + False + + + 92 + + Word @@ -453,19 +464,6 @@ Free Software Foundation, Inc</small> 34 - - - 100 - 67 - True - False - 89 - - - 92 - 22 - - False @@ -494,9 +492,10 @@ Free Software Foundation, Inc</small> - + True False + vertical True @@ -597,9 +596,10 @@ Free Software Foundation, Inc</small> - + True False + vertical @@ -676,9 +676,10 @@ Free Software Foundation, Inc</small> - + True False + vertical True @@ -894,10 +895,11 @@ Free Software Foundation, Inc</small> - + True False 12 + vertical True @@ -940,7 +942,6 @@ Free Software Foundation, Inc</small> - True False MIX Console input False @@ -987,10 +988,11 @@ Free Software Foundation, Inc</small> - + True False 3 + vertical True @@ -1041,10 +1043,11 @@ Free Software Foundation, Inc</small> - + True False 2 + vertical 2 @@ -1717,9 +1720,10 @@ Free Software Foundation, Inc</small> - + True False + vertical True @@ -1792,9 +1796,10 @@ Free Software Foundation, Inc</small> - + True False + vertical True @@ -1925,9 +1930,10 @@ Free Software Foundation, Inc</small> - + True False + vertical @@ -1961,9 +1967,10 @@ Free Software Foundation, Inc</small> - + True False + vertical True @@ -2029,14 +2036,15 @@ Free Software Foundation, Inc</small> 5 0 - + True False - + True False 1 + vertical 1 @@ -2352,7 +2360,7 @@ Free Software Foundation, Inc</small> - + True False @@ -2395,7 +2403,7 @@ Free Software Foundation, Inc</small> - + True False @@ -2405,7 +2413,7 @@ Free Software Foundation, Inc</small> 2 0 - + True False 1 @@ -2516,7 +2524,7 @@ Free Software Foundation, Inc</small> 2 0 - + True False 4 @@ -2585,7 +2593,7 @@ Free Software Foundation, Inc</small> 2 0 - + True False 5 @@ -2782,7 +2790,7 @@ Free Software Foundation, Inc</small> 0 0 - + True False 2 diff --git a/mixgtk/mixgtk.gladep b/mixgtk/mixgtk.gladep deleted file mode 100644 index 40a311a..0000000 --- a/mixgtk/mixgtk.gladep +++ /dev/null @@ -1,9 +0,0 @@ - - - - - Mixgtk - mixgtk - . - FALSE - diff --git a/mixgtk/mixgtk_device.c b/mixgtk/mixgtk_device.c index 88fdfd1..6496851 100644 --- a/mixgtk/mixgtk_device.c +++ b/mixgtk/mixgtk_device.c @@ -195,6 +195,7 @@ init_input_widgets_ (void) gtk_entry_completion_set_minimum_key_length (completion, 1); gtk_entry_completion_set_text_column (completion, 0); gtk_entry_set_completion (input_dlg_entry_, completion); + gtk_widget_hide (input_dlg_); } static gboolean @@ -339,7 +340,7 @@ mixgtk_device_construct_gui_ (struct mixgtk_device_t *dev) gtk_tree_view_new_with_model (GTK_TREE_MODEL (bindev->store)); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (dev->widget), FALSE); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (dev->widget), TRUE); + // gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (dev->widget), TRUE); for (k = 0; k < BIN_DEV_COL_; ++k) { @@ -593,8 +594,8 @@ on_devdir_browse_clicked () gtk_file_chooser_dialog_new (_("Devices folder"), GTK_WINDOW (devdir_dlg_), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, + "_Cancel", GTK_RESPONSE_CANCEL, + "_Open", GTK_RESPONSE_ACCEPT, NULL); if (current != NULL) diff --git a/mixgtk/mixgtk_fontsel.c b/mixgtk/mixgtk_fontsel.c index ac5c881..b9812a1 100644 --- a/mixgtk/mixgtk_fontsel.c +++ b/mixgtk/mixgtk_fontsel.c @@ -43,7 +43,7 @@ static void init_fontsel_ (void) { fontsel_dialog_ = - GTK_FONT_SELECTION_DIALOG + GTK_FONT_CHOOSER_DIALOG (mixgtk_widget_factory_get_dialog (MIXGTK_FONTSEL_DIALOG)); g_assert (fontsel_dialog_ != NULL); } @@ -68,7 +68,8 @@ mixgtk_fontsel_set_font (mixgtk_font_t f, GtkWidget *w) if (font_desc) { - gtk_widget_modify_font (w, font_desc); + // deprecated... some silly CSS stuff instead + // gtk_widget_override_font (w, font_desc); gtk_widget_queue_draw (w); pango_font_description_free (font_desc); } diff --git a/mixgtk/mixgtk_gen_handlers.c b/mixgtk/mixgtk_gen_handlers.c index 010bdc1..64fb06f 100644 --- a/mixgtk/mixgtk_gen_handlers.c +++ b/mixgtk/mixgtk_gen_handlers.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixgtk_gen_handlers.c : * Implementation of the functions declared in mixgtk_gen_handlers.h * ------------------------------------------------------------------ - * Copyright (C) 2001, 2002, 2004, 2006, 2007 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002, 2004, 2006, 2007, 2019 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 @@ -40,8 +40,8 @@ get_chooser_ (const gchar *title, gboolean src) (gtk_file_chooser_dialog_new ("gmixvm", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, - GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, + "_Cancel", GTK_RESPONSE_CANCEL, + "_Open", GTK_RESPONSE_ACCEPT, NULL)); src_filter = gtk_file_filter_new (); gtk_file_filter_add_pattern (src_filter, "*.mixal"); @@ -194,5 +194,3 @@ on_save_activate (GtkWidget *w, gpointer data) { mixgtk_config_save (); } - - diff --git a/mixgtk/mixgtk_mixal.c b/mixgtk/mixgtk_mixal.c index 7ea8c75..5f8597b 100644 --- a/mixgtk/mixgtk_mixal.c +++ b/mixgtk/mixgtk_mixal.c @@ -147,7 +147,7 @@ fill_symbols_ (const mix_symbol_table_t *table) static void init_clist_ (void) { - GtkStockItem item; + // GtkStockItem item; GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); GtkCellRenderer *bprenderer = gtk_cell_renderer_pixbuf_new (); @@ -165,7 +165,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_, @@ -189,15 +189,15 @@ 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_STOP, &item)) */ + /* { */ + /* bp_stock_id_ = item.stock_id; */ + /* } */ - if (gtk_stock_lookup (GTK_STOCK_GO_FORWARD, &item)) - { - pc_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; -- cgit v1.2.3