gnome-commander r2072 - in trunk: . src



Author: epiotr
Date: Tue Sep  9 21:17:27 2008
New Revision: 2072
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2072&view=rev

Log:
gnome_cmd_file_list_update_style(GnomeCmdFileList*) -> GnomeCmdFileList::update_style()

Modified:
   trunk/ChangeLog
   trunk/src/gnome-cmd-file-list.cc
   trunk/src/gnome-cmd-file-list.h
   trunk/src/gnome-cmd-file-selector.cc
   trunk/src/gnome-cmd-search-dialog.cc

Modified: trunk/src/gnome-cmd-file-list.cc
==============================================================================
--- trunk/src/gnome-cmd-file-list.cc	(original)
+++ trunk/src/gnome-cmd-file-list.cc	Tue Sep  9 21:17:27 2008
@@ -1374,14 +1374,6 @@
 }
 
 
-void gnome_cmd_file_list_update_style (GnomeCmdFileList *fl)
-{
-    gtk_clist_set_row_height (*fl, gnome_cmd_data_get_list_row_height ());
-
-    gnome_cmd_clist_update_style (*fl);
-}
-
-
 inline void add_file_to_clist (GnomeCmdFileList *fl, GnomeCmdFile *finfo, gint in_row)
 {
     GtkCList *clist = GTK_CLIST (fl);
@@ -2234,6 +2226,13 @@
 }
 
 
+void GnomeCmdFileList::update_style()
+{
+    gtk_clist_set_row_height (*this, gnome_cmd_data_get_list_row_height ());
+    gnome_cmd_clist_update_style (*this);
+}
+
+
 void GnomeCmdFileList::invalidate_tree_size()
 {
     GList *all_files = get_visible_files();

Modified: trunk/src/gnome-cmd-file-list.h
==============================================================================
--- trunk/src/gnome-cmd-file-list.h	(original)
+++ trunk/src/gnome-cmd-file-list.h	Tue Sep  9 21:17:27 2008
@@ -112,6 +112,8 @@
 
     void invalidate_tree_size();
 
+    void update_style();
+
     gboolean key_pressed(GdkEventKey *event);
 };
 
@@ -160,8 +162,6 @@
 void gnome_cmd_file_list_show_files (GnomeCmdFileList *fl, GList *files, gboolean sort);
 void gnome_cmd_file_list_update_file (GnomeCmdFileList *fl, GnomeCmdFile *finfo);
 
-void gnome_cmd_file_list_update_style (GnomeCmdFileList *fl);
-
 void gnome_cmd_file_list_show_dir_size (GnomeCmdFileList *fl, GnomeCmdFile *finfo);
 
 void gnome_cmd_file_list_focus_file (GnomeCmdFileList *fl, const gchar *focus_file, gboolean scroll_to_file);

Modified: trunk/src/gnome-cmd-file-selector.cc
==============================================================================
--- trunk/src/gnome-cmd-file-selector.cc	(original)
+++ trunk/src/gnome-cmd-file-selector.cc	Tue Sep  9 21:17:27 2008
@@ -1806,7 +1806,7 @@
 void GnomeCmdFileSelector::update_style()
 {
     gnome_cmd_combo_update_style (GNOME_CMD_COMBO (con_combo));
-    gnome_cmd_file_list_update_style (file_list());
+    file_list()->update_style();
 
     if (priv->realized)
         update_files (this);

Modified: trunk/src/gnome-cmd-search-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.cc	(original)
+++ trunk/src/gnome-cmd-search-dialog.cc	Tue Sep  9 21:17:27 2008
@@ -954,7 +954,7 @@
     gtk_window_set_keep_above (GTK_WINDOW (dialog), FALSE);
 
     gtk_widget_grab_focus (dialog->priv->pattern_combo);
-    gnome_cmd_file_list_update_style (GNOME_CMD_FILE_LIST (dialog->priv->result_list));
+    GNOME_CMD_FILE_LIST (dialog->priv->result_list)->update_style();
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]