commit f2a184a191a79ef3f1744f622e7e4be097112a75
Author: phantomjinx <[email protected]>
Date: Sun Jul 24 20:53:05 2011 +0100
Track plugin fixes
* display_track.c
* Stop the Rating column from being expanded to a too long a size
* track_display.xml
* Align 2 checkboxes in the preferences to make them look a little more
neat
* track_display_preferences.c
* Populate the horizontal scrollbar checkbox will its value
plugins/track_display/display_tracks.c | 13 +++++++++----
plugins/track_display/track_display.xml | 2 ++
plugins/track_display/track_display_preferences.c | 4 ++++
3 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/plugins/track_display/display_tracks.c
b/plugins/track_display/display_tracks.c
index f9c98f8..aac858b 100644
--- a/plugins/track_display/display_tracks.c
+++ b/plugins/track_display/display_tracks.c
@@ -1823,8 +1823,6 @@ static GtkTreeViewColumn *tm_add_column(TM_item tm_item,
gint pos) {
/* for some column names we want to use shorter alternatives to
get_tm_string() */
case TM_COLUMN_RATING:
- gtk_tree_view_column_set_fixed_width(col, 85);
- gtk_tree_view_column_set_resizable(col, FALSE);
text = _("Rating");
break;
case TM_COLUMN_TRACK_NR:
@@ -2147,8 +2145,15 @@ void tm_show_preferred_columns(void) {
col_width = 80;
if (horizontal_scrollbar) {
- gtk_tree_view_column_set_fixed_width(tvc, col_width);
- gtk_tree_view_column_set_min_width(tvc, -1);
+ switch(tm_item) {
+ case TM_COLUMN_RATING:
+ gtk_tree_view_column_set_fixed_width(tvc, 85);
+ gtk_tree_view_column_set_min_width(tvc, 85);
+ break;
+ default:
+ gtk_tree_view_column_set_fixed_width(tvc, col_width);
+ gtk_tree_view_column_set_min_width(tvc, -1);
+ }
gtk_tree_view_column_set_expand(tvc, FALSE);
}
else {
diff --git a/plugins/track_display/track_display.xml
b/plugins/track_display/track_display.xml
index d0164b4..bf7efc4 100644
--- a/plugins/track_display/track_display.xml
+++ b/plugins/track_display/track_display.xml
@@ -281,6 +281,7 @@
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="events">GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK</property>
+ <property name="halign">start</property>
<property name="draw_indicator">True</property>
<signal name="toggled"
handler="on_horizontal_scrollbar_toggled"/>
</object>
@@ -296,6 +297,7 @@
<property name="receives_default">False</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text"
translatable="yes">If checked, sorting will be case sensitive. Please note that
case sensitive sorting will not work well with most charsets.</property>
+ <property name="halign">start</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<signal name="toggled"
handler="on_tm_sort_case_sensitive_toggled"/>
diff --git a/plugins/track_display/track_display_preferences.c
b/plugins/track_display/track_display_preferences.c
index 63abaae..a754b96 100644
--- a/plugins/track_display/track_display_preferences.c
+++ b/plugins/track_display/track_display_preferences.c
@@ -453,6 +453,10 @@ GtkWidget *init_track_display_preferences() {
populate_track_cmd_combo(cmd_combo);
+ if ((w = gtkpod_builder_xml_get_widget(prefbuilder,
"horizontal_scrollbar"))) {
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),
prefs_get_int("horizontal_scrollbar"));
+ }
+
if ((w = gtkpod_builder_xml_get_widget(prefbuilder,
"tm_cfg_case_sensitive"))) {
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w),
prefs_get_int("tm_case_sensitive"));
}
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2