gnome-commander r2073 - in branches/gcmd-1-3: . src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r2073 - in branches/gcmd-1-3: . src
- Date: Tue, 9 Sep 2008 21:17:49 +0000 (UTC)
Author: epiotr
Date: Tue Sep 9 21:17:49 2008
New Revision: 2073
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2073&view=rev
Log:
gnome_cmd_file_list_update_style(GnomeCmdFileList*) -> GnomeCmdFileList::update_style()
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/src/gnome-cmd-file-list.cc
branches/gcmd-1-3/src/gnome-cmd-file-list.h
branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc
Modified: branches/gcmd-1-3/src/gnome-cmd-file-list.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.cc Tue Sep 9 21:17:49 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: branches/gcmd-1-3/src/gnome-cmd-file-list.h
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-list.h (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-list.h Tue Sep 9 21:17:49 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: branches/gcmd-1-3/src/gnome-cmd-file-selector.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-file-selector.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-file-selector.cc Tue Sep 9 21:17:49 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: branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-search-dialog.cc Tue Sep 9 21:17:49 2008
@@ -952,7 +952,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]