Changeset 255

Show
Ignore:
Timestamp:
06/05/08 23:44:04 (4 years ago)
Author:
ath
Message:

First attempt to integrate the Marlin wave editor.

Location:
trunk/fm_gui
Files:
5 added
11 removed
15 modified
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/fm_gui/configure.ac

    r247 r255  
    4040AC_CHECK_FUNCS([strchr strstr]) 
    4141 
    42  
     420 
    4343 
    4444# Check for dependencies 
     
    4747AC_SUBST(FM_GUI_CFLAGS) 
    4848 
    49 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10) 
     49PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10 gstreamer-audio-0.10) 
    5050AC_SUBST(GSTREAMER_LIBS) 
    5151AC_SUBST(GSTREAMER_CFLAGS) 
    5252 
    53 PKG_CHECK_MODULES(GNOME_STUFF, libgnome-2.0 gconf-2.0 gnome-vfs-2.0) 
     53PKG_CHECK_MODULES(GNOME_STUFF, libgnome-2.0 gnome-vfs-2.0) 
    5454AC_SUBST(GNOME_STUFF_LIBS) 
    5555AC_SUBST(GNOME_STUFF_CFLAGS) 
  • trunk/fm_gui/data/Makefile.am

    r128 r255  
    88        fm_cdj.glade \ 
    99        fm_djmixer.glade \ 
    10         preferences.glade 
     10        fm_beatgen.glade \ 
     11        preferences.glade \ 
     12        marlin.xml 
    1113 
    1214 
  • trunk/fm_gui/src/Makefile.am

    r247 r255  
    44AM_CPPFLAGS = $(FM_GUI_CFLAGS) \ 
    55        $(RGC_CLIENT_CFLAGS) \ 
     6        $(GSTREAMER_CFLAGS) \ 
     7        $(GNOME_STUFF_CFLAGS) \ 
    68        $(BINRELOC_CFLAGS) 
    79 
    810AM_LDFLAGS = $(FM_GUI_LIBS) \ 
    911        $(RGC_CLIENT_LIBS) \ 
     12        $(GSTREAMER_LIBS) \ 
     13        $(GNOME_STUFF_LIBS) \ 
    1014        -export-dynamic 
    1115 
     
    3337        fm_beatgen.h \ 
    3438        fm_beatgen_gui.c \ 
    35         fm_beatgen_gui.h 
     39        fm_beatgen_gui.h \ 
     40        fm_beatcalc_gui.c \ 
     41        fm_beatcalc_gui.h \ 
     42        marlin-window.c \ 
     43        marlin-window.h \ 
     44        marlin-window-private.h \ 
     45        marlin-window-menu.c \ 
     46        marlin-window-menu.h 
    3647 
    3748 
  • trunk/fm_gui/src/base.c

    r246 r255  
    1111#include "fm_beatgen_gui.h" 
    1212#include "fm_beatgen.h" 
     13 
     14#include "marlin-window.h" 
     15#include "fm_beatcalc_gui.h" 
    1316 
    1417 
     
    111114        /* check if a pipeline already exists */ 
    112115        /* if not, build one */ 
     116 
     117        fm_beatcalc_gui_new (NULL); 
     118 
    113119        rgc_remote_object_new_async (base_pipeline_created_cb, bdata, 
    114120                              "FmPipeline", "pipeline", NULL); 
  • trunk/fm_gui/src/global.c

    r254 r255  
    116116        return g_build_filename (data_path, name, NULL); 
    117117} 
     118 
     119gchar * 
     120filename_data                           (gchar          *name) 
     121{ 
     122        return g_build_filename (data_path, name, NULL); 
     123} 
  • trunk/fm_gui/src/global.h

    r103 r255  
    77gchar * 
    88filename_glade                          (gchar          *name); 
     9 
     10gchar * 
     11filename_data                           (gchar          *name); 
  • trunk/fm_gui/src/marlin-window-menu.h

    r247 r255  
    2020 */ 
    2121 
    22 #ifndef __MARLIN_CHANNEL_JOINER_H__ 
    23 #define __MARLIN_CHANNEL_JOINER_H__ 
     22#ifndef __MARLIN_WINDOW_MENU_H__ 
     23#define __MARLIN_WINDOW_MENU_H__ 
    2424 
    25 #define MARLIN_CHANNEL_JOINER_TYPE (marlin_channel_joiner_get_type ()) 
    26 GType marlin_channel_joiner_get_type (void); 
     25#include "marlin-window.h" 
     26 
     27void marlin_window_menu_setup (MarlinWindow *window); 
     28void marlin_window_menu_popup_setup (MarlinWindow *window); 
    2729 
    2830#endif 
  • trunk/fm_gui/src/marlin-window-private.h

    r247 r255  
    11/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 
    22/* 
    3  *  Authors: Iain Holmes <iain@gnome.org> 
     3 *  Authors: Iain Holmes <iain@prettypeople.org> 
    44 * 
    5  *  Copyright 2002-2006 Iain Holmes 
     5 *  Copyright 2003 Iain Holmes 
    66 * 
    77 *  This program is free software; you can redistribute it and/or modify 
     
    2020 */ 
    2121 
    22 #ifndef __MARLIN_CHANNEL_JOINER_H__ 
    23 #define __MARLIN_CHANNEL_JOINER_H__ 
     22#ifndef __MARLIN_WINDOW_PRIVATE_H__ 
     23#define __MARLIN_WINDOW_PRIVATE_H__ 
    2424 
    25 #define MARLIN_CHANNEL_JOINER_TYPE (marlin_channel_joiner_get_type ()) 
    26 GType marlin_channel_joiner_get_type (void); 
     25typedef struct _MarlinWindow MarlinWindow; 
    2726 
    2827#endif 
  • trunk/fm_gui/src/marlin/Makefile.am

    r247 r255  
    66        marlin-marshal.c                        \ 
    77        marlin-marshal.h 
    8          
     8 
     9 
    910libmarlin_la_SOURCES =                          \ 
    1011        $(BUILT_SOURCES)                        \ 
    1112        marlin-beatsection-model.c              \ 
     13        marlin-beatsection-model.h              \ 
    1214        marlin-block.c                          \ 
     15        marlin-block.h                          \ 
    1316        marlin-channel.c                        \ 
    14         marlin-channel-joiner.c                 \ 
     17        marlin-channel.h                        \ 
    1518        marlin-channel-sink.c                   \ 
     19        marlin-channel-sink.h                   \ 
    1620        marlin-channel-splitter.c               \ 
     21        marlin-channel-splitter.h               \ 
    1722        marlin-channel-src.c                    \ 
     23        marlin-channel-src.h                    \ 
    1824        marlin-file.c                           \ 
     25        marlin-file.h                           \ 
    1926        marlin-file-utils.c                     \ 
     27        marlin-file-utils.h                     \ 
    2028        marlin-grid-point.c                     \ 
     29        marlin-grid-point.h                     \ 
    2130        marlin-gst-extras.c                     \ 
     31        marlin-gst-extras.h                     \ 
    2232        marlin-list.c                           \ 
     33        marlin-list.h                           \ 
    2334        marlin-load-pipeline.c                  \ 
     35        marlin-load-pipeline.h                  \ 
    2436        marlin-marker-model.c                   \ 
     37        marlin-marker-model.h                   \ 
    2538        marlin-operation.c                      \ 
     39        marlin-operation.h                      \ 
    2640        marlin-pipeline.c                       \ 
     41        marlin-pipeline.h                       \ 
    2742        marlin-play-pipeline.c                  \ 
     43        marlin-play-pipeline.h                  \ 
    2844        marlin-program.c                        \ 
     45        marlin-program.h                        \ 
    2946        marlin-read-write-lock.c                \ 
     47        marlin-read-write-lock.h                \ 
    3048        marlin-sample.c                         \ 
     49        marlin-sample.h                         \ 
    3150        marlin-sample-selection.c               \ 
    32         marlin-save-pipeline.c                  \ 
     51        marlin-sample-selection.h               \ 
    3352        marlin-types.c                          \ 
     53        marlin-types.h                          \ 
    3454        marlin-undoable.c                       \ 
    3555        marlin-undo-manager.c                   \ 
    36         marlin-utils.c 
     56        marlin-undo-manager.h                   \ 
     57        marlin-utils.c                          \ 
     58        marlin-utils.h                          \ 
     59        marlin-msgport.h                        \ 
     60        marlin-mt.h                             \ 
     61        marlin-object.h                         \ 
     62        marlin-undoable.h                        
     63 
    3764 
    3865libmarlin_la_CFLAGS =                           \ 
    39         -I$(top_srcdir)                         \ 
    40         -I$(top_builddir)                       \ 
    4166        $(FM_GUI_CFLAGS)                        \ 
    4267        $(GSTREAMER_CFLAGS)                     \ 
    4368        $(GNOME_STUFF_CFLAGS)                   \ 
    44         -DDATADIR=\""$(datadir)"\"              \ 
    4569        -DG_LOG_DOMAIN=\"libmarlin\" 
    4670 
     
    5175 
    5276 
    53 marlin_headers =                                \ 
     77libmarlinx_la_SOURCES =                         \ 
     78        marlin-a11y-helper.c                    \ 
    5479        marlin-a11y-helper.h                    \ 
    55         marlin-beatsection-model.h              \ 
     80        marlin-base-window.c                    \ 
    5681        marlin-base-window.h                    \ 
    57         marlin-block.h                          \ 
    58         marlin-channel.h                        \ 
    59         marlin-channel-joiner.h                 \ 
    60         marlin-channel-sink.h                   \ 
    61         marlin-channel-splitter.h               \ 
    62         marlin-channel-src.h                    \ 
    63         marlin-cross-fader.h                    \ 
     82        marlin-cursors.c                        \ 
    6483        marlin-cursors.h                        \ 
    65         marlin-file.h                           \ 
    66         marlin-file-chooser.h                   \ 
    67         marlin-file-utils.h                     \ 
     84        marlin-grid.c                           \ 
    6885        marlin-grid.h                           \ 
    69         marlin-grid-point.h                     \ 
    70         marlin-gst-extras.h                     \ 
     86        marlin-level-ruler.c                    \ 
    7187        marlin-level-ruler.h                    \ 
    72         marlin-list.h                           \ 
    73         marlin-load-pipeline.h                  \ 
    74         marlin-marker-model.h                   \ 
     88        marlin-marker-view.c                    \ 
    7589        marlin-marker-view.h                    \ 
    76         marlin-msgport.h                        \ 
    77         marlin-mt.h                             \ 
    78         marlin-object.h                         \ 
    79         marlin-operation.h                      \ 
     90        marlin-overview-bar.c                   \ 
    8091        marlin-overview-bar.h                   \ 
    81         marlin-pipeline.h                       \ 
    82         marlin-play-pipeline.h                  \ 
    83         marlin-plugin.h                         \ 
     92        marlin-position-spinner.c               \ 
    8493        marlin-position-spinner.h               \ 
     94        marlin-progress-dialog.c                \ 
    8595        marlin-progress-dialog.h                \ 
    86         marlin-program.h                        \ 
    87         marlin-read-write-lock.h                \ 
    88         marlin-record-pipeline.h                \ 
    89         marlin-sample.h                         \ 
     96        marlin-progress-dialog-icons.h          \ 
     97        marlin-sample-drawing.c                 \ 
    9098        marlin-sample-drawing.h                 \ 
    91         marlin-sample-selection.h               \ 
     99        marlin-sample-view.c                    \ 
    92100        marlin-sample-view.h                    \ 
    93         marlin-save-pipeline.h                  \ 
     101        marlin-stock.c                          \ 
    94102        marlin-stock.h                          \ 
    95         marlin-types.h                          \ 
    96         marlin-undoable.h                       \ 
    97         marlin-undo-manager.h                   \ 
    98         marlin-utils.h                          \ 
     103        marlin-x-utils.c                        \ 
    99104        marlin-x-utils.h 
    100105 
    101 libmarlinx_la_SOURCES =                         \ 
    102         marlin-a11y-helper.c                    \ 
    103         marlin-base-window.c                    \ 
    104         marlin-cross-fader.c                    \ 
    105         marlin-cursors.c                        \ 
    106         marlin-file-chooser.c                   \ 
    107         marlin-grid.c                           \ 
    108         marlin-level-ruler.c                    \ 
    109         marlin-marker-view.c                    \ 
    110         marlin-overview-bar.c                   \ 
    111         marlin-plugin.c                         \ 
    112         marlin-position-spinner.c               \ 
    113         marlin-progress-dialog.c                \ 
    114         marlin-progress-dialog-icons.h          \ 
    115         marlin-sample-drawing.c                 \ 
    116         marlin-sample-view.c                    \ 
    117         marlin-stock.c                          \ 
    118         marlin-x-utils.c 
    119  
    120106libmarlinx_la_CFLAGS =                          \ 
    121         -I$(top_srcdir)                         \ 
    122         -I$(top_builddir)                       \ 
    123107        $(FM_GUI_CFLAGS)                        \ 
    124108        $(GSTREAMER_CFLAGS)                     \ 
    125109        $(GNOME_STUFF_CFLAGS)                   \ 
    126         -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \ 
    127         -DDATADIR=\""$(datadir)"\"              \ 
    128         -DMARLIN_PLUGINS_DIR=\""$(plugindir)"\" \ 
    129110        -DG_LOG_DOMAIN=\"libmarlinx\" 
    130  
    131 libmarlinincludedir = $(includedir)/libmarlin 
    132 libmarlininclude_HEADERS =                      \ 
    133         $(marlin_headers) 
    134111 
    135112 
  • trunk/fm_gui/src/marlin/marlin-file-utils.c

    r247 r255  
    3030static char *dot_dir = NULL; 
    3131 
    32 char * 
     32/*char * 
    3333marlin_file (const char *filename) 
    3434{ 
     
    5959        g_warning ("Failed to find %s", filename); 
    6060        return NULL; 
    61 } 
     61}*/ 
    6262 
    6363const char * 
  • trunk/fm_gui/src/marlin/marlin-gst-extras.c

    r247 r255  
    3232 
    3333#include "marlin-gst-extras.h" 
    34 #include "marlin-channel-joiner.h" 
     34//#include "marlin-channel-joiner.h" 
    3535#include "marlin-channel-sink.h" 
    3636#include "marlin-channel-src.h" 
     
    494494        register_element (plugin, "marlin-channel-splitter",  
    495495                          MARLIN_CHANNEL_SPLITTER_TYPE); 
    496         register_element (plugin, "marlin-channel-joiner", 
    497                           MARLIN_CHANNEL_JOINER_TYPE); 
     496/*      register_element (plugin, "marlin-channel-joiner", 
     497                          MARLIN_CHANNEL_JOINER_TYPE);*/ 
    498498        return TRUE; 
    499499} 
     
    516516marlin_gst_register (void) 
    517517{ 
    518         gst_tag_register (MARLIN_TAG_BPM, GST_TAG_FLAG_META, 
     518        /*gst_tag_register (MARLIN_TAG_BPM, GST_TAG_FLAG_META, 
    519519                          G_TYPE_STRING, "", "", 
    520                           gst_tag_merge_strings_with_comma); 
     520                          gst_tag_merge_strings_with_comma);*/ 
    521521 
    522522        _gst_plugin_register_static (&plugin_desc); 
  • trunk/fm_gui/src/marlin/marlin-level-ruler.c

    r247 r255  
    571571                                                            0, G_MAXUINT, 0, 
    572572                                                            G_PARAM_WRITABLE)); 
    573         g_object_class_install_property (object_class, 
     573/*      g_object_class_install_property (object_class, 
    574574                                         PROP_LEVEL_DISPLAY, 
    575575                                         g_param_spec_enum ("scale", 
     
    577577                                                            MARLIN_TYPE_SCALE, 
    578578                                                            MARLIN_SCALE_LINEAR, 
    579                                                             G_PARAM_READWRITE)); 
     579                                                            G_PARAM_READWRITE));*/ 
    580580        signals[BASELINE_CHANGED] = g_signal_new ("baseline-changed", 
    581581                                                  G_TYPE_FROM_CLASS (klass), 
  • trunk/fm_gui/src/marlin/marlin-marker-view.c

    r247 r255  
    270270 
    271271        if (priv->regions) { 
    272                 marlin_list_free (priv->regions); 
     272//              marlin_list_free (priv->regions); 
    273273        } 
    274274 
     
    351351reset_regions (MarlinMarkerView *view) 
    352352{ 
    353         MarlinMarkerViewPrivate *priv = view->priv; 
     353/*      MarlinMarkerViewPrivate *priv = view->priv; 
    354354         
    355355        marlin_list_clear (priv->regions); 
    356356 
    357         /* Create a new region that goes from start -> finish */ 
     357        // Create a new region that goes from start -> finish  
    358358        marlin_list_append (priv->regions, 
    359                             (MarlinListNode *) g_slice_new0 (struct _Region)); 
     359                            (MarlinListNode *) g_slice_new0 (struct _Region));*/ 
    360360} 
    361361 
     
    365365             struct _Region  **region) 
    366366{ 
    367         MarlinMarkerViewPrivate *priv = view->priv; 
     367        /*MarlinMarkerViewPrivate *priv = view->priv; 
    368368        MarlinListNode *l; 
    369369 
     
    379379 
    380380                if (r->end) { 
    381                         /* Regions go from start -> finish - 1 */ 
     381                        // Regions go from start -> finish - 1  
    382382                        region_end = r->end->position - 1; 
    383383                } else { 
     
    392392                        return TRUE; 
    393393                }  
    394         } 
     394        }*/ 
    395395 
    396396        /* This cannot happen, the position should always be between 
     
    426426              MarlinMarker     *marker) 
    427427{ 
    428         MarlinMarkerViewPrivate *priv = view->priv; 
     428/*      MarlinMarkerViewPrivate *priv = view->priv; 
    429429        struct _Region *new_region; 
    430430 
     
    437437        region->end = marker; 
    438438 
    439         /* Insert the region into the list */ 
     439        // Insert the region into the list  
    440440        marlin_list_insert_after (priv->regions, 
    441441                                  (MarlinListNode *) region, 
    442                                   (MarlinListNode *) new_region); 
     442                                  (MarlinListNode *) new_region);*/ 
    443443} 
    444444 
     
    448448              struct _Region   *region_b) 
    449449{ 
    450         MarlinMarkerViewPrivate *priv = view->priv; 
     450//      MarlinMarkerViewPrivate *priv = view->priv; 
    451451 
    452452        g_return_if_fail (region_a != NULL); 
     
    455455        region_a->end = region_b->end; 
    456456 
    457         marlin_list_remove (priv->regions, (MarlinListNode *) region_b); 
     457//      marlin_list_remove (priv->regions, (MarlinListNode *) region_b); 
    458458} 
    459459 
     
    26022602                                                               G_PARAM_READWRITE)); 
    26032603 
    2604         g_object_class_install_property (object_class, 
     2604/*      g_object_class_install_property (object_class, 
    26052605                                         PROP_DISPLAY_TYPE, 
    26062606                                         g_param_spec_enum ("display_type", 
     
    26082608                                                            MARLIN_TYPE_DISPLAY, 
    26092609                                                            MARLIN_DISPLAY_FRAMES, 
    2610                                                             G_PARAM_READWRITE)); 
     2610                                                            G_PARAM_READWRITE));*/ 
    26112611        g_object_class_install_property (object_class, 
    26122612                                         PROP_UNDO_MANAGER, 
     
    28312831        priv->bpm = MARLIN_DEFAULT_BPM; 
    28322832 
    2833         priv->regions = marlin_list_new (region_free); 
     2833//      priv->regions = marlin_list_new (region_free); 
    28342834} 
    28352835 
  • trunk/fm_gui/src/marlin/marlin-mt.h

    r247 r255  
    2626 
    2727#include <pthread.h> 
    28 #include <marlin-msgport.h> 
     28#include "marlin-msgport.h" 
    2929 
    3030typedef struct _MarlinMTMsgOp MarlinMTMsgOp; 
  • trunk/fm_gui/src/marlin/marlin-sample-view.c

    r247 r255  
    34213421                                                              G_PARAM_READWRITE)); 
    34223422                                                  
    3423         g_object_class_install_property (object_class, 
     3423/*      g_object_class_install_property (object_class, 
    34243424                                         PROP_CURSOR_COVERAGE, 
    34253425                                         g_param_spec_enum ("cursor_coverage", 
     
    34273427                                                            MARLIN_TYPE_COVERAGE, 
    34283428                                                            MARLIN_COVERAGE_BOTH, 
    3429                                                             G_PARAM_READWRITE)); 
    3430         g_object_class_install_property (object_class, 
     3429                                                            G_PARAM_READWRITE));*/ 
     3430/*      g_object_class_install_property (object_class, 
    34313431                                         PROP_PLAY_COVERAGE, 
    34323432                                         g_param_spec_enum ("play_coverage", 
     
    34343434                                                            MARLIN_TYPE_COVERAGE, 
    34353435                                                            MARLIN_COVERAGE_BOTH, 
    3436                                                             G_PARAM_READWRITE)); 
     3436                                                            G_PARAM_READWRITE));*/ 
    34373437        g_object_class_install_property (object_class, 
    34383438                                         PROP_SHOW_PLAY_CURSOR, 
  • trunk/fm_gui/src/marlin/marlin-utils.c

    r247 r255  
    421421        return 20 * log (abs (percentage) / 100.0); 
    422422} 
    423  
    424 /** 
    425  * marlin_gconf_get_int: 
    426  * @key: The int key. 
    427  * 
    428  * Get an integer from GConf 
    429  * 
    430  * Returns: The integer at @key. 
    431  */ 
    432 /*int 
    433 marlin_gconf_get_int (const char *key) 
    434 { 
    435         int result; 
    436          
    437         if (client == NULL) { 
    438                 client = gconf_client_get_default (); 
    439         } 
    440  
    441         result = gconf_client_get_int (client, key, NULL); 
    442  
    443         return result; 
    444 }*/ 
    445  
    446 /** 
    447  * marlin_gconf_set_int: 
    448  * @key: The GConf key 
    449  * @value: The value to set. 
    450  * 
    451  * Sets the value of @key to @value 
    452  */ 
    453 /*void 
    454 marlin_gconf_set_int (const char *key, 
    455                       int value) 
    456 { 
    457         if (client == NULL) { 
    458                 client = gconf_client_get_default (); 
    459         } 
    460  
    461         gconf_client_set_int (client, key, value, NULL); 
    462 }*/ 
    463  
    464 /** 
    465  * marlin_gconf_get_float: 
    466  * @key: The GConf key. 
    467  * 
    468  * Gets a float from GConf. 
    469  * 
    470  * Returns: The value at @key. 
    471  */ 
    472 /*float 
    473 marlin_gconf_get_float (const char *key) 
    474 { 
    475         float result; 
    476  
    477         if (client == NULL) { 
    478                 client = gconf_client_get_default (); 
    479         } 
    480  
    481         result = gconf_client_get_float (client, key, NULL); 
    482  
    483         return result; 
    484 } 
    485  
    486 static GConfValue * 
    487 get_gconf_value (const char *key) 
    488 { 
    489         GConfValue *val;         
    490  
    491         if (client == NULL) { 
    492                 client = gconf_client_get_default (); 
    493         } 
    494  
    495         val = gconf_client_get (client, key, NULL); 
    496  
    497         return val; 
    498 } 
    499  
    500 float 
    501 marlin_gconf_get_float_with_default (const char *key, 
    502                                      float       def) 
    503 { 
    504         GConfValue *val; 
    505         float result; 
    506  
    507         val = get_gconf_value (key); 
    508  
    509         if (val == NULL) { 
    510                 return def; 
    511         } 
    512  
    513         result = gconf_value_get_float (val); 
    514         gconf_value_free (val); 
    515  
    516         return result; 
    517 }*/ 
    518  
    519 /** 
    520  * marlin_gconf_set_float: 
    521  * @key: The GConf key. 
    522  * @value: The value to set. 
    523  * 
    524  * Sets the value of @key to @value. 
    525  */ 
    526 /*void 
    527 marlin_gconf_set_float (const char *key, 
    528                         float value) 
    529 { 
    530         if (client == NULL) { 
    531                 client = gconf_client_get_default (); 
    532         } 
    533  
    534         gconf_client_set_float (client, key, value, NULL); 
    535 }*/ 
    536  
    537 /** 
    538  * marlin_gconf_get_string: 
    539  * @key: The GConf key. 
    540  * 
    541  * Get a string out of GConf. 
    542  * 
    543  * Returns the string at @key. 
    544  */ 
    545 /*char * 
    546 marlin_gconf_get_string (const char *key) 
    547 { 
    548         char *result; 
    549          
    550         if (client == NULL) { 
    551                 client = gconf_client_get_default (); 
    552         } 
    553  
    554         result = gconf_client_get_string (client, key, NULL); 
    555  
    556         return result; 
    557 }*/ 
    558  
    559 /** 
    560  * marlin_gconf_set_string: 
    561  * @key: The GConf key. 
    562  * @value: The value to set. 
    563  * 
    564  * Sets the value of @key to @value. 
    565  */ 
    566 /*void 
    567 marlin_gconf_set_string (const char *key, 
    568                          const char *value) 
    569 { 
    570         if (client == NULL) { 
    571                 client = gconf_client_get_default (); 
    572         } 
    573  
    574         gconf_client_set_string (client, key, value, NULL); 
    575 }*/ 
    576  
    577 /** 
    578  * marlin_gconf_get_bool: 
    579  * @key: The GConf key. 
    580  * 
    581  * Gets the value associated with @key. 
    582  * 
    583  * Returns: A boolean. 
    584  */ 
    585 /*gboolean 
    586 marlin_gconf_get_bool (const char *key) 
    587 { 
    588         if (client == NULL) { 
    589                 client = gconf_client_get_default (); 
    590         } 
    591  
    592         return gconf_client_get_bool (client, key, NULL); 
    593 }*/ 
    594  
    595 /** 
    596  * marlin_gconf_get_default: 
    597  * 
    598  * Gets the default GConf client that Marlin is using. 
    599  * 
    600  * Returns: A GConfClient that isn't to be unreffed. 
    601  */ 
    602 /*GConfClient * 
    603 marlin_gconf_get_default (void) 
    604 { 
    605         if (client == NULL) { 
    606                 client = gconf_client_get_default (); 
    607         } 
    608  
    609         return client; 
    610 }*/ 
    611  
    612 /** 
    613  * marlin_gconf_destroy_default: 
    614  * 
    615  * Destroys Marlin's default GConf client 
    616  * 
    617  */ 
    618 /*void 
    619 marlin_gconf_destroy_default (void) 
    620 { 
    621         if (client != NULL) { 
    622                 g_object_unref (G_OBJECT (client)); 
    623         } 
    624  
    625         client = NULL; 
    626 } 
    627  
    628 #define NUM_CHANNEL_DESCRIPTIONS 3 
    629 static const char *channel_descriptions [NUM_CHANNEL_DESCRIPTIONS] = { 
    630         N_("Mono"), 
    631         N_("Stereo"), 
    632         NULL 
    633 };*/ 
    634  
    635 /** 
    636  * marlin_channels_to_string: 
    637  * @channels: The number of channels. 
    638  * 
    639  * Returns: a string representing the number of channels. 
    640  */ 
    641 /*char * 
    642 marlin_channels_to_string (guint channels) 
    643 { 
    644         if (channels >= NUM_CHANNEL_DESCRIPTIONS) { 
    645                 return g_strdup_printf ("%d", channels); 
    646         } 
    647  
    648         return g_strdup (_(channel_descriptions[channels - 1])); 
    649 }*/ 
  • trunk/fm_gui/src/marlin/marlin-utils.h

    r247 r255  
    2626#include <glib.h> 
    2727 
    28 /*#include <gconf/gconf-client.h>*/ 
    29  
    3028#define MARLIN_DIALOG_BORDER_WIDTH 12 
    3129#define MARLIN_INFINITE_DB -96.0 
     
    5452double marlin_percent_to_db (double percentage); 
    5553 
    56 int marlin_gconf_get_int (const char *key); 
    57 void marlin_gconf_set_int (const char *key, 
    58                            int value); 
    59 float marlin_gconf_get_float (const char *key); 
    60 float marlin_gconf_get_float_with_default (const char *key, 
    61                                            float       def); 
    62  
    63 void marlin_gconf_set_float (const char *key, 
    64                              float value); 
    65 char *marlin_gconf_get_string (const char *key); 
    66 void marlin_gconf_set_string (const char *key, 
    67                               const char *value); 
    68 gboolean marlin_gconf_get_bool (const char *key); 
    69  
    70 //GConfClient *marlin_gconf_get_default (void); 
    71 void marlin_gconf_destroy_default (void); 
    72  
    7354char *marlin_channels_to_string (guint channels); 
    7455