Changeset 255
- Timestamp:
- 06/05/08 23:44:04 (4 years ago)
- Location:
- trunk/fm_gui
- Files:
-
- 5 added
- 11 removed
- 15 modified
- 1 copied
- 1 moved
-
configure.ac (modified) (2 diffs)
-
data/Makefile.am (modified) (1 diff)
-
src/Makefile.am (modified) (2 diffs)
-
src/base.c (modified) (2 diffs)
-
src/fm_beatcalc_gui.c (added)
-
src/fm_beatcalc_gui.h (added)
-
src/global.c (modified) (1 diff)
-
src/global.h (modified) (1 diff)
-
src/marlin-window-menu.c (added)
-
src/marlin-window-menu.h (copied) (copied from trunk/fm_gui/src/marlin/marlin-channel-joiner.h) (1 diff)
-
src/marlin-window-private.h (moved) (moved from trunk/fm_gui/src/marlin/marlin-channel-joiner.h) (2 diffs)
-
src/marlin-window.c (added)
-
src/marlin-window.h (added)
-
src/marlin/Makefile.am (modified) (2 diffs)
-
src/marlin/marlin-channel-joiner.c (deleted)
-
src/marlin/marlin-cross-fader.c (deleted)
-
src/marlin/marlin-cross-fader.h (deleted)
-
src/marlin/marlin-file-chooser.c (deleted)
-
src/marlin/marlin-file-chooser.h (deleted)
-
src/marlin/marlin-file-utils.c (modified) (2 diffs)
-
src/marlin/marlin-gst-extras.c (modified) (3 diffs)
-
src/marlin/marlin-level-ruler.c (modified) (2 diffs)
-
src/marlin/marlin-marker-view.c (modified) (12 diffs)
-
src/marlin/marlin-mt.h (modified) (1 diff)
-
src/marlin/marlin-plugin.c (deleted)
-
src/marlin/marlin-plugin.h (deleted)
-
src/marlin/marlin-record-pipeline.c (deleted)
-
src/marlin/marlin-record-pipeline.h (deleted)
-
src/marlin/marlin-sample-view.c (modified) (3 diffs)
-
src/marlin/marlin-save-pipeline.c (deleted)
-
src/marlin/marlin-save-pipeline.h (deleted)
-
src/marlin/marlin-utils.c (modified) (1 diff)
-
src/marlin/marlin-utils.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/fm_gui/configure.ac
r247 r255 40 40 AC_CHECK_FUNCS([strchr strstr]) 41 41 42 42 0 43 43 44 44 # Check for dependencies … … 47 47 AC_SUBST(FM_GUI_CFLAGS) 48 48 49 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10 )49 PKG_CHECK_MODULES(GSTREAMER, gstreamer-0.10 gstreamer-base-0.10 gstreamer-plugins-base-0.10 gstreamer-audio-0.10) 50 50 AC_SUBST(GSTREAMER_LIBS) 51 51 AC_SUBST(GSTREAMER_CFLAGS) 52 52 53 PKG_CHECK_MODULES(GNOME_STUFF, libgnome-2.0 g conf-2.0 gnome-vfs-2.0)53 PKG_CHECK_MODULES(GNOME_STUFF, libgnome-2.0 gnome-vfs-2.0) 54 54 AC_SUBST(GNOME_STUFF_LIBS) 55 55 AC_SUBST(GNOME_STUFF_CFLAGS) -
trunk/fm_gui/data/Makefile.am
r128 r255 8 8 fm_cdj.glade \ 9 9 fm_djmixer.glade \ 10 preferences.glade 10 fm_beatgen.glade \ 11 preferences.glade \ 12 marlin.xml 11 13 12 14 -
trunk/fm_gui/src/Makefile.am
r247 r255 4 4 AM_CPPFLAGS = $(FM_GUI_CFLAGS) \ 5 5 $(RGC_CLIENT_CFLAGS) \ 6 $(GSTREAMER_CFLAGS) \ 7 $(GNOME_STUFF_CFLAGS) \ 6 8 $(BINRELOC_CFLAGS) 7 9 8 10 AM_LDFLAGS = $(FM_GUI_LIBS) \ 9 11 $(RGC_CLIENT_LIBS) \ 12 $(GSTREAMER_LIBS) \ 13 $(GNOME_STUFF_LIBS) \ 10 14 -export-dynamic 11 15 … … 33 37 fm_beatgen.h \ 34 38 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 36 47 37 48 -
trunk/fm_gui/src/base.c
r246 r255 11 11 #include "fm_beatgen_gui.h" 12 12 #include "fm_beatgen.h" 13 14 #include "marlin-window.h" 15 #include "fm_beatcalc_gui.h" 13 16 14 17 … … 111 114 /* check if a pipeline already exists */ 112 115 /* if not, build one */ 116 117 fm_beatcalc_gui_new (NULL); 118 113 119 rgc_remote_object_new_async (base_pipeline_created_cb, bdata, 114 120 "FmPipeline", "pipeline", NULL); -
trunk/fm_gui/src/global.c
r254 r255 116 116 return g_build_filename (data_path, name, NULL); 117 117 } 118 119 gchar * 120 filename_data (gchar *name) 121 { 122 return g_build_filename (data_path, name, NULL); 123 } -
trunk/fm_gui/src/global.h
r103 r255 7 7 gchar * 8 8 filename_glade (gchar *name); 9 10 gchar * 11 filename_data (gchar *name); -
trunk/fm_gui/src/marlin-window-menu.h
r247 r255 20 20 */ 21 21 22 #ifndef __MARLIN_ CHANNEL_JOINER_H__23 #define __MARLIN_ CHANNEL_JOINER_H__22 #ifndef __MARLIN_WINDOW_MENU_H__ 23 #define __MARLIN_WINDOW_MENU_H__ 24 24 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 27 void marlin_window_menu_setup (MarlinWindow *window); 28 void marlin_window_menu_popup_setup (MarlinWindow *window); 27 29 28 30 #endif -
trunk/fm_gui/src/marlin-window-private.h
r247 r255 1 1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 2 /* 3 * Authors: Iain Holmes <iain@ gnome.org>3 * Authors: Iain Holmes <iain@prettypeople.org> 4 4 * 5 * Copyright 200 2-2006Iain Holmes5 * Copyright 2003 Iain Holmes 6 6 * 7 7 * This program is free software; you can redistribute it and/or modify … … 20 20 */ 21 21 22 #ifndef __MARLIN_ CHANNEL_JOINER_H__23 #define __MARLIN_ CHANNEL_JOINER_H__22 #ifndef __MARLIN_WINDOW_PRIVATE_H__ 23 #define __MARLIN_WINDOW_PRIVATE_H__ 24 24 25 #define MARLIN_CHANNEL_JOINER_TYPE (marlin_channel_joiner_get_type ()) 26 GType marlin_channel_joiner_get_type (void); 25 typedef struct _MarlinWindow MarlinWindow; 27 26 28 27 #endif -
trunk/fm_gui/src/marlin/Makefile.am
r247 r255 6 6 marlin-marshal.c \ 7 7 marlin-marshal.h 8 8 9 9 10 libmarlin_la_SOURCES = \ 10 11 $(BUILT_SOURCES) \ 11 12 marlin-beatsection-model.c \ 13 marlin-beatsection-model.h \ 12 14 marlin-block.c \ 15 marlin-block.h \ 13 16 marlin-channel.c \ 14 marlin-channel -joiner.c\17 marlin-channel.h \ 15 18 marlin-channel-sink.c \ 19 marlin-channel-sink.h \ 16 20 marlin-channel-splitter.c \ 21 marlin-channel-splitter.h \ 17 22 marlin-channel-src.c \ 23 marlin-channel-src.h \ 18 24 marlin-file.c \ 25 marlin-file.h \ 19 26 marlin-file-utils.c \ 27 marlin-file-utils.h \ 20 28 marlin-grid-point.c \ 29 marlin-grid-point.h \ 21 30 marlin-gst-extras.c \ 31 marlin-gst-extras.h \ 22 32 marlin-list.c \ 33 marlin-list.h \ 23 34 marlin-load-pipeline.c \ 35 marlin-load-pipeline.h \ 24 36 marlin-marker-model.c \ 37 marlin-marker-model.h \ 25 38 marlin-operation.c \ 39 marlin-operation.h \ 26 40 marlin-pipeline.c \ 41 marlin-pipeline.h \ 27 42 marlin-play-pipeline.c \ 43 marlin-play-pipeline.h \ 28 44 marlin-program.c \ 45 marlin-program.h \ 29 46 marlin-read-write-lock.c \ 47 marlin-read-write-lock.h \ 30 48 marlin-sample.c \ 49 marlin-sample.h \ 31 50 marlin-sample-selection.c \ 32 marlin-sa ve-pipeline.c\51 marlin-sample-selection.h \ 33 52 marlin-types.c \ 53 marlin-types.h \ 34 54 marlin-undoable.c \ 35 55 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 37 64 38 65 libmarlin_la_CFLAGS = \ 39 -I$(top_srcdir) \40 -I$(top_builddir) \41 66 $(FM_GUI_CFLAGS) \ 42 67 $(GSTREAMER_CFLAGS) \ 43 68 $(GNOME_STUFF_CFLAGS) \ 44 -DDATADIR=\""$(datadir)"\" \45 69 -DG_LOG_DOMAIN=\"libmarlin\" 46 70 … … 51 75 52 76 53 marlin_headers = \ 77 libmarlinx_la_SOURCES = \ 78 marlin-a11y-helper.c \ 54 79 marlin-a11y-helper.h \ 55 marlin-b eatsection-model.h\80 marlin-base-window.c \ 56 81 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 \ 64 83 marlin-cursors.h \ 65 marlin-file.h \ 66 marlin-file-chooser.h \ 67 marlin-file-utils.h \ 84 marlin-grid.c \ 68 85 marlin-grid.h \ 69 marlin-grid-point.h \ 70 marlin-gst-extras.h \ 86 marlin-level-ruler.c \ 71 87 marlin-level-ruler.h \ 72 marlin-list.h \ 73 marlin-load-pipeline.h \ 74 marlin-marker-model.h \ 88 marlin-marker-view.c \ 75 89 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 \ 80 91 marlin-overview-bar.h \ 81 marlin-pipeline.h \ 82 marlin-play-pipeline.h \ 83 marlin-plugin.h \ 92 marlin-position-spinner.c \ 84 93 marlin-position-spinner.h \ 94 marlin-progress-dialog.c \ 85 95 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 \ 90 98 marlin-sample-drawing.h \ 91 marlin-sample- selection.h\99 marlin-sample-view.c \ 92 100 marlin-sample-view.h \ 93 marlin-s ave-pipeline.h\101 marlin-stock.c \ 94 102 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 \ 99 104 marlin-x-utils.h 100 105 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.c119 120 106 libmarlinx_la_CFLAGS = \ 121 -I$(top_srcdir) \122 -I$(top_builddir) \123 107 $(FM_GUI_CFLAGS) \ 124 108 $(GSTREAMER_CFLAGS) \ 125 109 $(GNOME_STUFF_CFLAGS) \ 126 -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \127 -DDATADIR=\""$(datadir)"\" \128 -DMARLIN_PLUGINS_DIR=\""$(plugindir)"\" \129 110 -DG_LOG_DOMAIN=\"libmarlinx\" 130 131 libmarlinincludedir = $(includedir)/libmarlin132 libmarlininclude_HEADERS = \133 $(marlin_headers)134 111 135 112 -
trunk/fm_gui/src/marlin/marlin-file-utils.c
r247 r255 30 30 static char *dot_dir = NULL; 31 31 32 char *32 /*char * 33 33 marlin_file (const char *filename) 34 34 { … … 59 59 g_warning ("Failed to find %s", filename); 60 60 return NULL; 61 } 61 }*/ 62 62 63 63 const char * -
trunk/fm_gui/src/marlin/marlin-gst-extras.c
r247 r255 32 32 33 33 #include "marlin-gst-extras.h" 34 #include "marlin-channel-joiner.h"34 //#include "marlin-channel-joiner.h" 35 35 #include "marlin-channel-sink.h" 36 36 #include "marlin-channel-src.h" … … 494 494 register_element (plugin, "marlin-channel-splitter", 495 495 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);*/ 498 498 return TRUE; 499 499 } … … 516 516 marlin_gst_register (void) 517 517 { 518 gst_tag_register (MARLIN_TAG_BPM, GST_TAG_FLAG_META,518 /*gst_tag_register (MARLIN_TAG_BPM, GST_TAG_FLAG_META, 519 519 G_TYPE_STRING, "", "", 520 gst_tag_merge_strings_with_comma); 520 gst_tag_merge_strings_with_comma);*/ 521 521 522 522 _gst_plugin_register_static (&plugin_desc); -
trunk/fm_gui/src/marlin/marlin-level-ruler.c
r247 r255 571 571 0, G_MAXUINT, 0, 572 572 G_PARAM_WRITABLE)); 573 g_object_class_install_property (object_class,573 /* g_object_class_install_property (object_class, 574 574 PROP_LEVEL_DISPLAY, 575 575 g_param_spec_enum ("scale", … … 577 577 MARLIN_TYPE_SCALE, 578 578 MARLIN_SCALE_LINEAR, 579 G_PARAM_READWRITE)); 579 G_PARAM_READWRITE));*/ 580 580 signals[BASELINE_CHANGED] = g_signal_new ("baseline-changed", 581 581 G_TYPE_FROM_CLASS (klass), -
trunk/fm_gui/src/marlin/marlin-marker-view.c
r247 r255 270 270 271 271 if (priv->regions) { 272 marlin_list_free (priv->regions);272 // marlin_list_free (priv->regions); 273 273 } 274 274 … … 351 351 reset_regions (MarlinMarkerView *view) 352 352 { 353 MarlinMarkerViewPrivate *priv = view->priv;353 /* MarlinMarkerViewPrivate *priv = view->priv; 354 354 355 355 marlin_list_clear (priv->regions); 356 356 357 / * Create a new region that goes from start -> finish */357 // Create a new region that goes from start -> finish 358 358 marlin_list_append (priv->regions, 359 (MarlinListNode *) g_slice_new0 (struct _Region)); 359 (MarlinListNode *) g_slice_new0 (struct _Region));*/ 360 360 } 361 361 … … 365 365 struct _Region **region) 366 366 { 367 MarlinMarkerViewPrivate *priv = view->priv;367 /*MarlinMarkerViewPrivate *priv = view->priv; 368 368 MarlinListNode *l; 369 369 … … 379 379 380 380 if (r->end) { 381 / * Regions go from start -> finish - 1 */381 // Regions go from start -> finish - 1 382 382 region_end = r->end->position - 1; 383 383 } else { … … 392 392 return TRUE; 393 393 } 394 } 394 }*/ 395 395 396 396 /* This cannot happen, the position should always be between … … 426 426 MarlinMarker *marker) 427 427 { 428 MarlinMarkerViewPrivate *priv = view->priv;428 /* MarlinMarkerViewPrivate *priv = view->priv; 429 429 struct _Region *new_region; 430 430 … … 437 437 region->end = marker; 438 438 439 / * Insert the region into the list */439 // Insert the region into the list 440 440 marlin_list_insert_after (priv->regions, 441 441 (MarlinListNode *) region, 442 (MarlinListNode *) new_region); 442 (MarlinListNode *) new_region);*/ 443 443 } 444 444 … … 448 448 struct _Region *region_b) 449 449 { 450 MarlinMarkerViewPrivate *priv = view->priv;450 // MarlinMarkerViewPrivate *priv = view->priv; 451 451 452 452 g_return_if_fail (region_a != NULL); … … 455 455 region_a->end = region_b->end; 456 456 457 marlin_list_remove (priv->regions, (MarlinListNode *) region_b);457 // marlin_list_remove (priv->regions, (MarlinListNode *) region_b); 458 458 } 459 459 … … 2602 2602 G_PARAM_READWRITE)); 2603 2603 2604 g_object_class_install_property (object_class,2604 /* g_object_class_install_property (object_class, 2605 2605 PROP_DISPLAY_TYPE, 2606 2606 g_param_spec_enum ("display_type", … … 2608 2608 MARLIN_TYPE_DISPLAY, 2609 2609 MARLIN_DISPLAY_FRAMES, 2610 G_PARAM_READWRITE)); 2610 G_PARAM_READWRITE));*/ 2611 2611 g_object_class_install_property (object_class, 2612 2612 PROP_UNDO_MANAGER, … … 2831 2831 priv->bpm = MARLIN_DEFAULT_BPM; 2832 2832 2833 priv->regions = marlin_list_new (region_free);2833 // priv->regions = marlin_list_new (region_free); 2834 2834 } 2835 2835 -
trunk/fm_gui/src/marlin/marlin-mt.h
r247 r255 26 26 27 27 #include <pthread.h> 28 #include <marlin-msgport.h>28 #include "marlin-msgport.h" 29 29 30 30 typedef struct _MarlinMTMsgOp MarlinMTMsgOp; -
trunk/fm_gui/src/marlin/marlin-sample-view.c
r247 r255 3421 3421 G_PARAM_READWRITE)); 3422 3422 3423 g_object_class_install_property (object_class,3423 /* g_object_class_install_property (object_class, 3424 3424 PROP_CURSOR_COVERAGE, 3425 3425 g_param_spec_enum ("cursor_coverage", … … 3427 3427 MARLIN_TYPE_COVERAGE, 3428 3428 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, 3431 3431 PROP_PLAY_COVERAGE, 3432 3432 g_param_spec_enum ("play_coverage", … … 3434 3434 MARLIN_TYPE_COVERAGE, 3435 3435 MARLIN_COVERAGE_BOTH, 3436 G_PARAM_READWRITE)); 3436 G_PARAM_READWRITE));*/ 3437 3437 g_object_class_install_property (object_class, 3438 3438 PROP_SHOW_PLAY_CURSOR, -
trunk/fm_gui/src/marlin/marlin-utils.c
r247 r255 421 421 return 20 * log (abs (percentage) / 100.0); 422 422 } 423 424 /**425 * marlin_gconf_get_int:426 * @key: The int key.427 *428 * Get an integer from GConf429 *430 * Returns: The integer at @key.431 */432 /*int433 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 key449 * @value: The value to set.450 *451 * Sets the value of @key to @value452 */453 /*void454 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 /*float473 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 float501 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 /*void527 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 /*void567 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 /*gboolean586 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 client616 *617 */618 /*void619 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 3629 static const char *channel_descriptions [NUM_CHANNEL_DESCRIPTIONS] = {630 N_("Mono"),631 N_("Stereo"),632 NULL633 };*/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 26 26 #include <glib.h> 27 27 28 /*#include <gconf/gconf-client.h>*/29 30 28 #define MARLIN_DIALOG_BORDER_WIDTH 12 31 29 #define MARLIN_INFINITE_DB -96.0 … … 54 52 double marlin_percent_to_db (double percentage); 55 53 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 73 54 char *marlin_channels_to_string (guint channels); 74 55
