comparison src/layout_util.c @ 1513:c9ed5a43c576

dropped show_copy_path option
author nadvornik
date Sat, 04 Apr 2009 22:09:50 +0000
parents 23d24af93ab0
children 7216f4a45698
comparison
equal deleted inserted replaced
1512:0a1266bde95b 1513:c9ed5a43c576
1129 layout_recent_update_all(); 1129 layout_recent_update_all();
1130 } 1130 }
1131 1131
1132 /* 1132 /*
1133 *----------------------------------------------------------------------------- 1133 *-----------------------------------------------------------------------------
1134 * copy path
1135 *-----------------------------------------------------------------------------
1136 */
1137
1138 static void layout_copy_path_update(LayoutWindow *lw)
1139 {
1140 GtkWidget *item = gtk_ui_manager_get_widget(lw->ui_manager, "/MainMenu/FileMenu/CopyPath");
1141
1142 if (!item) return;
1143
1144 if (options->show_copy_path)
1145 gtk_widget_show(item);
1146 else
1147 gtk_widget_hide(item);
1148 }
1149
1150 void layout_copy_path_update_all(void)
1151 {
1152 GList *work;
1153
1154 work = layout_window_list;
1155 while (work)
1156 {
1157 LayoutWindow *lw = work->data;
1158 work = work->next;
1159
1160 layout_copy_path_update(lw);
1161 }
1162 }
1163
1164 /*
1165 *-----------------------------------------------------------------------------
1166 * menu 1134 * menu
1167 *----------------------------------------------------------------------------- 1135 *-----------------------------------------------------------------------------
1168 */ 1136 */
1169 1137
1170 #define CB G_CALLBACK 1138 #define CB G_CALLBACK
1769 layout_toolbar_clear(lw); 1737 layout_toolbar_clear(lw);
1770 layout_toolbar_add_default(lw); 1738 layout_toolbar_add_default(lw);
1771 1739
1772 layout_actions_setup_marks(lw); 1740 layout_actions_setup_marks(lw);
1773 layout_actions_setup_editors(lw); 1741 layout_actions_setup_editors(lw);
1774 layout_copy_path_update(lw);
1775 1742
1776 layout_actions_add_window(lw, lw->window); 1743 layout_actions_add_window(lw, lw->window);
1777 } 1744 }
1778 1745
1779 void layout_editors_reload_all(void) 1746 void layout_editors_reload_all(void)