Changeset 268

Show
Ignore:
Timestamp:
08/18/08 14:44:00 (4 years ago)
Author:
ath
Message:

A lot of updates to fm_beatcalc.

Location:
trunk/fm_gui
Files:
10 modified

Legend:

Unmodified
Added
Removed
  • trunk/fm_gui/data/fm_cdj.glade

    r133 r268  
    11<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
    22<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> 
    3 <!-- Generated with glade3 
     3<!--Generated with glade3 3.4.5 on Wed Jul 16 11:53:17 2008  
    44        Version: 3.0.1 
    55        Date: Fri Sep 15 22:26:58 2006 
     
    99<glade-interface> 
    1010  <widget class="GtkWindow" id="cdj_window"> 
    11     <property name="visible">True</property> 
    1211    <property name="title">CDJ %n</property> 
    1312    <property name="resizable">False</property> 
     
    4645                                <property name="height_request">16</property> 
    4746                                <property name="visible">True</property> 
    48                                 <property name="xalign">0,000000</property> 
    49                                 <property name="yalign">0,000000</property> 
     47                                <property name="xalign">0</property> 
     48                                <property name="yalign">0</property> 
    5049                                <property name="label" translatable="yes">&lt;span size="x-small" color="Cyan"&gt;PITCH&lt;/span&gt;</property> 
    5150                                <property name="use_markup">True</property> 
     
    6160                                <property name="height_request">16</property> 
    6261                                <property name="visible">True</property> 
    63                                 <property name="xalign">0,000000</property> 
    64                                 <property name="yalign">0,000000</property> 
     62                                <property name="xalign">0</property> 
     63                                <property name="yalign">0</property> 
    6564                                <property name="label" translatable="yes">&lt;span size="x-small" color="Cyan"&gt;BPM&lt;/span&gt;</property> 
    6665                                <property name="use_markup">True</property> 
     
    7675                                <property name="height_request">16</property> 
    7776                                <property name="visible">True</property> 
    78                                 <property name="xalign">0,000000</property> 
    79                                 <property name="yalign">0,000000</property> 
     77                                <property name="xalign">0</property> 
     78                                <property name="yalign">0</property> 
    8079                                <property name="label" translatable="yes">&lt;span size="small" color="Cyan"&gt;NO FILE LOADED&lt;/span&gt;</property> 
    8180                                <property name="use_markup">True</property> 
     
    9291                                <property name="height_request">24</property> 
    9392                                <property name="visible">True</property> 
    94                                 <property name="xalign">0,000000</property> 
    95                                 <property name="yalign">0,000000</property> 
     93                                <property name="xalign">0</property> 
     94                                <property name="yalign">0</property> 
    9695                                <property name="label" translatable="yes">&lt;span size="xx-large" color="Cyan"&gt;&lt;b&gt;- 0:00.000&lt;/b&gt;&lt;/span&gt;</property> 
    9796                                <property name="use_markup">True</property> 
     
    107106                                <property name="height_request">16</property> 
    108107                                <property name="visible">True</property> 
    109                                 <property name="xalign">0,000000</property> 
    110                                 <property name="yalign">0,000000</property> 
     108                                <property name="xalign">0</property> 
     109                                <property name="yalign">0</property> 
    111110                                <property name="label" translatable="yes">&lt;span size="x-large" color="Cyan"&gt;&lt;b&gt;+0.00&lt;/b&gt;&lt;/span&gt;</property> 
    112111                                <property name="use_markup">True</property> 
     
    122121                                <property name="height_request">16</property> 
    123122                                <property name="visible">True</property> 
    124                                 <property name="xalign">0,000000</property> 
    125                                 <property name="yalign">0,000000</property> 
     123                                <property name="xalign">0</property> 
     124                                <property name="yalign">0</property> 
    126125                                <property name="label" translatable="yes">&lt;span size="xx-large" color="Cyan"&gt;&lt;b&gt;---.-&lt;/b&gt;&lt;/span&gt;</property> 
    127126                                <property name="use_markup">True</property> 
     
    143142                                    <property name="height_request">16</property> 
    144143                                    <property name="visible">True</property> 
    145                                     <property name="xalign">0,000000</property> 
    146                                     <property name="yalign">0,000000</property> 
     144                                    <property name="xalign">0</property> 
     145                                    <property name="yalign">0</property> 
    147146                                    <property name="label" translatable="yes">&lt;span size="x-small" color="Cyan"&gt;POSITION&lt;/span&gt;</property> 
    148147                                    <property name="use_markup">True</property> 
     
    205204                                        <property name="height_request">21</property> 
    206205                                        <property name="visible">True</property> 
     206                                        <property name="response_id">0</property> 
    207207                                        <child> 
    208208                                          <widget class="GtkLabel" id="label1"> 
     
    223223                                        <property name="height_request">21</property> 
    224224                                        <property name="visible">True</property> 
     225                                        <property name="response_id">0</property> 
    225226                                        <child> 
    226227                                          <widget class="GtkLabel" id="label3"> 
     
    245246                                        <property name="can_focus">True</property> 
    246247                                        <property name="use_underline">True</property> 
     248                                        <property name="response_id">0</property> 
    247249                                      </widget> 
    248250                                      <packing> 
     
    260262                                        <property name="can_focus">True</property> 
    261263                                        <property name="use_underline">True</property> 
     264                                        <property name="response_id">0</property> 
    262265                                      </widget> 
    263266                                      <packing> 
     
    268271                                    </child> 
    269272                                    <child> 
    270                                       <widget class="GtkButton" id="button5"> 
     273                                      <widget class="GtkButton" id="button_beatcalc"> 
    271274                                        <property name="width_request">29</property> 
    272275                                        <property name="height_request">21</property> 
    273276                                        <property name="visible">True</property> 
    274                                         <property name="sensitive">False</property> 
    275277                                        <property name="can_focus">True</property> 
     278                                        <property name="label" translatable="yes">BC</property> 
    276279                                        <property name="use_underline">True</property> 
     280                                        <property name="response_id">0</property> 
    277281                                      </widget> 
    278282                                      <packing> 
     
    297301                                        <property name="visible">True</property> 
    298302                                        <property name="can_focus">True</property> 
     303                                        <property name="response_id">0</property> 
    299304                                        <child> 
    300305                                          <widget class="GtkImage" id="image_play"> 
    301306                                            <property name="visible">True</property> 
     307                                            <property name="stock">gtk-missing-image</property> 
    302308                                          </widget> 
    303309                                        </child> 
     
    315321                                        <property name="can_focus">True</property> 
    316322                                        <property name="relief">GTK_RELIEF_HALF</property> 
    317                                         <property name="yalign">0,480000</property> 
     323                                        <property name="yalign">0</property> 
     324                                        <property name="response_id">0</property> 
    318325                                        <child> 
    319326                                          <widget class="GtkImage" id="image_cue"> 
    320327                                            <property name="visible">True</property> 
     328                                            <property name="stock">gtk-missing-image</property> 
    321329                                          </widget> 
    322330                                        </child> 
     
    341349                                <property name="n_columns">2</property> 
    342350                                <child> 
    343                                   <widget class="GtkButton" id="button_skip_a"> 
     351                                  <widget class="GtkButton" id="button_skip_f"> 
    344352                                    <property name="visible">True</property> 
    345353                                    <property name="can_focus">True</property> 
    346                                     <child> 
    347                                       <widget class="GtkImage" id="image10"> 
    348                                         <property name="visible">True</property> 
    349                                         <property name="xalign">0,000000</property> 
    350                                         <property name="yalign">0,000000</property> 
    351                                         <property name="stock">gtk-media-rewind</property> 
    352                                       </widget> 
    353                                     </child> 
    354                                   </widget> 
    355                                   <packing> 
     354                                    <property name="response_id">0</property> 
     355                                    <child> 
     356                                      <widget class="GtkImage" id="image7"> 
     357                                        <property name="visible">True</property> 
     358                                        <property name="xalign">0</property> 
     359                                        <property name="yalign">0</property> 
     360                                        <property name="stock">gtk-goto-last</property> 
     361                                      </widget> 
     362                                    </child> 
     363                                  </widget> 
     364                                  <packing> 
     365                                    <property name="left_attach">1</property> 
     366                                    <property name="right_attach">2</property> 
     367                                    <property name="top_attach">2</property> 
     368                                    <property name="bottom_attach">3</property> 
    356369                                    <property name="x_options">GTK_FILL</property> 
    357370                                    <property name="y_options"></property> 
     
    359372                                </child> 
    360373                                <child> 
    361                                   <widget class="GtkButton" id="button_skip_b"> 
     374                                  <widget class="GtkButton" id="button_skip_e"> 
    362375                                    <property name="visible">True</property> 
    363376                                    <property name="can_focus">True</property> 
    364                                     <child> 
    365                                       <widget class="GtkImage" id="image11"> 
    366                                         <property name="visible">True</property> 
    367                                         <property name="xalign">0,000000</property> 
    368                                         <property name="yalign">0,000000</property> 
    369                                         <property name="stock">gtk-media-forward</property> 
    370                                       </widget> 
    371                                     </child> 
    372                                   </widget> 
    373                                   <packing> 
    374                                     <property name="left_attach">1</property> 
    375                                     <property name="right_attach">2</property> 
     377                                    <property name="response_id">0</property> 
     378                                    <child> 
     379                                      <widget class="GtkImage" id="image6"> 
     380                                        <property name="visible">True</property> 
     381                                        <property name="xalign">0</property> 
     382                                        <property name="yalign">0</property> 
     383                                        <property name="stock">gtk-goto-first</property> 
     384                                      </widget> 
     385                                    </child> 
     386                                  </widget> 
     387                                  <packing> 
     388                                    <property name="top_attach">2</property> 
     389                                    <property name="bottom_attach">3</property> 
    376390                                    <property name="x_options">GTK_FILL</property> 
    377391                                    <property name="y_options"></property> 
     
    379393                                </child> 
    380394                                <child> 
    381                                   <widget class="GtkButton" id="button_skip_c"> 
     395                                  <widget class="GtkButton" id="button_skip_d"> 
    382396                                    <property name="visible">True</property> 
    383397                                    <property name="can_focus">True</property> 
    384                                     <child> 
    385                                       <widget class="GtkImage" id="image12"> 
    386                                         <property name="visible">True</property> 
    387                                         <property name="xalign">0,000000</property> 
    388                                         <property name="yalign">0,000000</property> 
    389                                         <property name="stock">gtk-media-previous</property> 
    390                                       </widget> 
    391                                     </child> 
    392                                   </widget> 
    393                                   <packing> 
    394                                     <property name="top_attach">1</property> 
    395                                     <property name="bottom_attach">2</property> 
    396                                     <property name="x_options">GTK_FILL</property> 
    397                                     <property name="y_options"></property> 
    398                                   </packing> 
    399                                 </child> 
    400                                 <child> 
    401                                   <widget class="GtkButton" id="button_skip_d"> 
    402                                     <property name="visible">True</property> 
    403                                     <property name="can_focus">True</property> 
     398                                    <property name="response_id">0</property> 
    404399                                    <child> 
    405400                                      <widget class="GtkImage" id="image13"> 
    406401                                        <property name="visible">True</property> 
    407                                         <property name="xalign">0,000000</property> 
    408                                         <property name="yalign">0,000000</property> 
     402                                        <property name="xalign">0</property> 
     403                                        <property name="yalign">0</property> 
    409404                                        <property name="stock">gtk-media-next</property> 
    410405                                      </widget> 
     
    421416                                </child> 
    422417                                <child> 
    423                                   <widget class="GtkButton" id="button_skip_e"> 
     418                                  <widget class="GtkButton" id="button_skip_c"> 
    424419                                    <property name="visible">True</property> 
    425420                                    <property name="can_focus">True</property> 
    426                                     <child> 
    427                                       <widget class="GtkImage" id="image6"> 
    428                                         <property name="visible">True</property> 
    429                                         <property name="xalign">0,000000</property> 
    430                                         <property name="yalign">0,000000</property> 
    431                                         <property name="stock">gtk-goto-first</property> 
    432                                       </widget> 
    433                                     </child> 
    434                                   </widget> 
    435                                   <packing> 
    436                                     <property name="top_attach">2</property> 
    437                                     <property name="bottom_attach">3</property> 
     421                                    <property name="response_id">0</property> 
     422                                    <child> 
     423                                      <widget class="GtkImage" id="image12"> 
     424                                        <property name="visible">True</property> 
     425                                        <property name="xalign">0</property> 
     426                                        <property name="yalign">0</property> 
     427                                        <property name="stock">gtk-media-previous</property> 
     428                                      </widget> 
     429                                    </child> 
     430                                  </widget> 
     431                                  <packing> 
     432                                    <property name="top_attach">1</property> 
     433                                    <property name="bottom_attach">2</property> 
    438434                                    <property name="x_options">GTK_FILL</property> 
    439435                                    <property name="y_options"></property> 
     
    441437                                </child> 
    442438                                <child> 
    443                                   <widget class="GtkButton" id="button_skip_f"> 
     439                                  <widget class="GtkButton" id="button_skip_b"> 
    444440                                    <property name="visible">True</property> 
    445441                                    <property name="can_focus">True</property> 
    446                                     <child> 
    447                                       <widget class="GtkImage" id="image7"> 
    448                                         <property name="visible">True</property> 
    449                                         <property name="xalign">0,000000</property> 
    450                                         <property name="yalign">0,000000</property> 
    451                                         <property name="stock">gtk-goto-last</property> 
     442                                    <property name="response_id">0</property> 
     443                                    <child> 
     444                                      <widget class="GtkImage" id="image11"> 
     445                                        <property name="visible">True</property> 
     446                                        <property name="xalign">0</property> 
     447                                        <property name="yalign">0</property> 
     448                                        <property name="stock">gtk-media-forward</property> 
    452449                                      </widget> 
    453450                                    </child> 
     
    456453                                    <property name="left_attach">1</property> 
    457454                                    <property name="right_attach">2</property> 
    458                                     <property name="top_attach">2</property> 
    459                                     <property name="bottom_attach">3</property> 
     455                                    <property name="x_options">GTK_FILL</property> 
     456                                    <property name="y_options"></property> 
     457                                  </packing> 
     458                                </child> 
     459                                <child> 
     460                                  <widget class="GtkButton" id="button_skip_a"> 
     461                                    <property name="visible">True</property> 
     462                                    <property name="can_focus">True</property> 
     463                                    <property name="response_id">0</property> 
     464                                    <child> 
     465                                      <widget class="GtkImage" id="image10"> 
     466                                        <property name="visible">True</property> 
     467                                        <property name="xalign">0</property> 
     468                                        <property name="yalign">0</property> 
     469                                        <property name="stock">gtk-media-rewind</property> 
     470                                      </widget> 
     471                                    </child> 
     472                                  </widget> 
     473                                  <packing> 
    460474                                    <property name="x_options">GTK_FILL</property> 
    461475                                    <property name="y_options"></property> 
     
    508522                            <property name="label" translatable="yes">&gt;</property> 
    509523                            <property name="use_underline">True</property> 
     524                            <property name="response_id">0</property> 
    510525                            <accelerator key="0" modifiers="" signal="activate"/> 
    511526                          </widget> 
     
    523538                                <property name="sensitive">False</property> 
    524539                                <property name="can_focus">True</property> 
     540                                <property name="response_id">0</property> 
    525541                                <child> 
    526542                                  <widget class="GtkImage" id="image2"> 
    527543                                    <property name="visible">True</property> 
    528                                     <property name="xalign">0,000000</property> 
    529                                     <property name="yalign">0,000000</property> 
     544                                    <property name="xalign">0</property> 
     545                                    <property name="yalign">0</property> 
    530546                                    <property name="stock">gtk-add</property> 
    531547                                  </widget> 
     
    542558                                <property name="sensitive">False</property> 
    543559                                <property name="can_focus">True</property> 
     560                                <property name="response_id">0</property> 
    544561                                <child> 
    545562                                  <widget class="GtkImage" id="image3"> 
    546563                                    <property name="visible">True</property> 
    547                                     <property name="xalign">0,000000</property> 
    548                                     <property name="yalign">0,000000</property> 
     564                                    <property name="xalign">0</property> 
     565                                    <property name="yalign">0</property> 
    549566                                    <property name="stock">gtk-remove</property> 
    550567                                  </widget> 
  • trunk/fm_gui/src/base.c

    r255 r268  
    115115        /* if not, build one */ 
    116116 
    117         fm_beatcalc_gui_new (NULL); 
     117//      fm_beatcalc_gui_new (NULL); 
    118118 
    119119        rgc_remote_object_new_async (base_pipeline_created_cb, bdata, 
  • trunk/fm_gui/src/fm_beatcalc_gui.c

    r255 r268  
    1515 
    1616#include "marlin-window.h" 
     17 
     18#include "base.h" 
     19#include "fm_cdj_gui.h" 
     20#include "fm_cdj.h" 
    1721#include "fm_beatcalc_gui.h" 
    1822 
     
    2428fm_beatcalc_window_load_file (FmBeatcalcGui *gui, const gchar *filename) 
    2529{ 
     30        marlin_window_load_file (gui->marlin_window, filename); 
    2631} 
    2732 
     
    4247 
    4348FmBeatcalcGui * 
    44 fm_beatcalc_gui_new                     (const gchar            *filename) 
     49fm_beatcalc_gui_new                     (FmCDJData      *cdj) 
    4550{ 
     51        const gchar *filename = cdj->selected_filename; 
     52 
    4653        if (!beatcalc_initialized) { 
    4754                marlin_gst_register (); 
     
    5259 
    5360        FmBeatcalcGui *gui = g_new0(FmBeatcalcGui, 1); 
     61        gui->cdj = cdj; 
    5462 
    5563        /* Create a sample to be used in the window */ 
     
    7583 
    7684        gui->marlin_window = marlin_window_new (); 
    77          
     85        g_object_set (G_OBJECT (gui->marlin_window), "sample", gui->sample, NULL); 
    7886        g_object_unref (gui->sample); 
    7987         
  • trunk/fm_gui/src/fm_beatcalc_gui.h

    r255 r268  
    33struct _FmBeatcalcGui { 
    44//      GladeXML *xml; 
     5 
     6        FmCDJData *cdj; 
    57 
    68        MarlinWindow *marlin_window; 
     
    1820 
    1921FmBeatcalcGui * 
    20 fm_beatcalc_gui_new                     (const gchar            *filename); 
     22fm_beatcalc_gui_new                     (FmCDJData      *cdj); 
  • trunk/fm_gui/src/fm_cdj.h

    r114 r268  
    1010        gchar           *artist; 
    1111        gchar           *title; 
     12 
     13        gchar           *selected_filename; 
    1214}; 
    1315 
  • trunk/fm_gui/src/fm_cdj_gui.c

    r264 r268  
    1313#include "fm_cdj_gui.h" 
    1414#include "fm_cdj.h" 
     15#include "marlin-window.h" 
     16#include "fm_beatcalc_gui.h" 
    1517 
    1618static void _button_play_clicked_cb             (GtkButton      *button,                                                                                         gpointer       user_data); 
     
    3941static void _tbutton_sync_master_toggled_cb     (GtkToggleButton *togglebutton, 
    4042                                                 gpointer       user_data); 
    41  
    4243static void _tbutton_sync_slave_toggled_cb      (GtkToggleButton *togglebutton, 
     44                                                 gpointer       user_data); 
     45static void _button_beatcalc_clicked_cb         (GtkButton      *button, 
    4346                                                 gpointer       user_data); 
    4447 
     
    161164        gui->togglebutton_sync_master = glade_xml_get_widget (gui->xml, "togglebutton_sync_master"); 
    162165        gui->togglebutton_sync_slave = glade_xml_get_widget (gui->xml, "togglebutton_sync_slave"); 
     166        gui->button_beatcalc = glade_xml_get_widget (gui->xml, "button_beatcalc"); 
    163167 
    164168        gui->button_play = glade_xml_get_widget(gui->xml, "button_play"); 
     
    201205        g_signal_connect(gui->togglebutton_sync_master, "toggled", G_CALLBACK(_tbutton_sync_master_toggled_cb), data); 
    202206        g_signal_connect(gui->togglebutton_sync_slave, "toggled", G_CALLBACK(_tbutton_sync_slave_toggled_cb), data); 
     207        g_signal_connect(gui->button_beatcalc, "clicked", G_CALLBACK(_button_beatcalc_clicked_cb), data); 
    203208 
    204209        g_signal_connect(gui->button_play, "clicked", G_CALLBACK(_button_play_clicked_cb), data); 
     
    236241        g_signal_connect (G_OBJECT (gui->scrolledwindow_display), "drag_data_received", 
    237242                        G_CALLBACK (_dnd_filename_cb), data); 
     243 
     244        gtk_widget_show (gui->window_cdj); 
     245 
    238246        return gui; 
    239247} 
     
    307315        FmCDJData *cdata = (FmCDJData *) user_data; 
    308316        gchar *dropped_filename; 
    309         gchar *selected_filename; 
    310317        GError *error = NULL; 
    311318         
     
    313320        gtk_drag_finish (context, TRUE, FALSE, time); 
    314321 
    315         selected_filename = g_strdup (g_filename_from_uri ((gchar *) dropped_filename, NULL, &error)); 
    316         if (selected_filename[strlen (selected_filename) - 1] == '\n') 
    317                 selected_filename = g_strndup (selected_filename, strlen (selected_filename) - 2); 
    318          
    319         g_print ("Selected filename: %s\n", selected_filename); 
    320         gchar *basename = g_path_get_basename (selected_filename); 
     322        cdata->selected_filename = g_strdup (g_filename_from_uri ((gchar *) dropped_filename, NULL, &error)); 
     323        if (cdata->selected_filename[strlen (cdata->selected_filename) - 1] == '\n') 
     324                cdata->selected_filename = g_strndup (cdata->selected_filename, strlen (cdata->selected_filename) - 2); 
     325         
     326        g_print ("Selected filename: %s\n", cdata->selected_filename); 
     327        gchar *basename = g_path_get_basename (cdata->selected_filename); 
    321328        gchar *message = g_strdup_printf ("LOADING %s", basename); 
    322329 
     
    330337        g_free(basename); 
    331338 
    332         GValue *fn = g_value_init_string (selected_filename); 
     339        GValue *fn = g_value_init_string (cdata->selected_filename); 
    333340        rgc_remote_object_call (cdata->element, "load_file", fn, NULL); 
    334341        g_value_destroy(fn); 
     
    567574        g_print ("togglebutton_sync_slave_toggled\n"); 
    568575} 
     576 
     577 
     578static void 
     579_button_beatcalc_clicked_cb             (GtkButton              *button, 
     580                                         gpointer               user_data) 
     581{ 
     582        FmCDJData *cdata = (FmCDJData *) user_data; 
     583         
     584        g_print ("button_beatcalc_clicked, filename \"%s\"\n", cdata->selected_filename); 
     585 
     586        if (cdata->selected_filename) 
     587                fm_beatcalc_gui_new (cdata); 
     588} 
  • trunk/fm_gui/src/fm_cdj_gui.h

    r153 r268  
    33struct _FmCDJGui { 
    44        GladeXML *xml; 
    5  
    65 
    76        GtkWidget *window_cdj; 
     
    1211        GtkWidget *togglebutton_sync_master; 
    1312        GtkWidget *togglebutton_sync_slave; 
     13        GtkWidget *button_beatcalc; 
    1414 
    1515        GtkWidget *button_play; 
  • trunk/fm_gui/src/main.c

    r228 r268  
    55#include <rgc_client.h> 
    66#include <string.h> 
     7 
     8#include <gst/gst.h> 
    79 
    810#include "global.h" 
     
    2628        gtk_init (&argc, &argv); 
    2729        gtk_tx_widgets_init (); 
     30        gst_init (&argc, &argv);        // FIXMEEEEEEEEEEEE 
    2831 
    2932        static gchar *hostname = "localhost"; 
  • trunk/fm_gui/src/marlin-window-menu.c

    r255 r268  
    931931} 
    932932 
     933 
    933934static GtkActionEntry toplevel_entries[] = { 
    934935        { "File", NULL, N_("_File") }, 
     
    964965          N_("Information about the sample"), 
    965966          G_CALLBACK (file_properties) },*/ 
     967        { "BeatinfoSave", GTK_STOCK_CLOSE, N_("Save beatinfo"), NULL, 
     968          N_("Save the current beat info"), 
     969          G_CALLBACK (beatinfo_save) }, 
    966970        { "FileClose", GTK_STOCK_CLOSE, N_("Close"), "<control>W", 
    967971          N_("Close this window"), 
  • trunk/fm_gui/src/marlin-window.c

    r255 r268  
    387387                              NULL); 
    388388 
    389                 if (channels == 1) { 
     389                /*if (channels == 1) { 
    390390                        gtk_widget_hide (window->priv->right_vu); 
    391391                } else { 
    392392                        gtk_widget_show (window->priv->right_vu); 
    393                 } 
     393                }*/ 
    394394 
    395395                marlin_window_set_process_name (window); 
     
    22812281                set_path_sensitive (ag, "SelectAll", sensitive); 
    22822282                //set_path_sensitive (ag, "SelectRegion", sensitive); 
    2283                 set_path_sensitive (ag, "AddBeatSection", FALSE); 
     2283                set_path_sensitive (ag, "AddBeatSection", TRUE); 
    22842284                marlin_sample_selection_get (priv->selection,  
    22852285                                             &coverage, 
     
    22942294                set_path_sensitive (ag, "SelectRight", FALSE); 
    22952295                set_path_sensitive (ag, "SelectSnapToZero", FALSE); 
    2296                 set_path_sensitive (ag, "SaveBeatInfo", FALSE); 
     2296                set_path_sensitive (ag, "SaveBeatInfo", TRUE); 
    22972297        } else { 
    22982298                set_path_sensitive (ag, "SelectNone", sensitive); 
     
    23022302                set_path_sensitive (ag, "SelectRight", TRUE); 
    23032303                set_path_sensitive (ag, "SelectSnapToZero", TRUE); 
    2304                 set_path_sensitive (ag, "SaveBeatInfo", FALSE); 
     2304                set_path_sensitive (ag, "SaveBeatInfo", TRUE); 
    23052305        } 
    23062306} 
     
    24432443} 
    24442444 
    2445 static void 
     2445/*static void 
    24462446set_path_tooltip (GtkActionGroup *ag, 
    24472447                  const char *path, 
     
    24522452        action = gtk_action_group_get_action (ag, path); 
    24532453        g_object_set (action, "tooltip", text, NULL); 
    2454 } 
     2454}*/ 
    24552455 
    24562456void 
     
    25372537#endif 
    25382538 
     2539#if 0 
    25392540        if (marlin_undo_manager_can_redo (window->priv->undo)) { 
    25402541                char *name; 
     
    25482549                set_path_name (ag, "EditRedo", _("Redo")); 
    25492550                set_path_tooltip (ag, "EditRedo", _("Redo the last action")); 
    2550         }                                          
     2551        } 
     2552#endif                                     
    25512553} 
    25522554 
     
    55165518                      NULL);     
    55175519 
    5518  
    5519  
    55205520        g_print ("WRITING INFO\n"); 
    55215521