Changeset 25
- Timestamp:
- 11/01/07 13:25:30
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/src/tmut-menu-view.c (modified) (2 diffs)
- trunk/src/tmut-shell-window.c (modified) (6 diffs)
- trunk/src/tmut-shell-window.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r22 r25 3 3 * Restructured the menus a little bit 4 4 * Implementation of copy&move and delete of folders 5 * Further refactoring 5 6 6 7 2007-10-31 Philip Van Hoof <pvanhoof@gnome.org> trunk/src/tmut-menu-view.c
r24 r25 148 148 &store, -1); 149 149 dialog = gtk_dialog_new_with_buttons ("Create a folder", 150 GTK_WINDOW ( gtk_widget_get_parent (GTK_WIDGET (self))),150 GTK_WINDOW (priv->shell), 151 151 GTK_DIALOG_MODAL, 152 152 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, … … 215 215 gint result; 216 216 GtkWidget *dialog = gtk_dialog_new_with_buttons ("Delete a folder", 217 GTK_WINDOW ( gtk_widget_get_parent (GTK_WIDGET (self))),217 GTK_WINDOW (priv->shell), 218 218 GTK_DIALOG_MODAL, 219 219 GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, trunk/src/tmut-shell-window.c
r19 r25 44 44 45 45 46 void47 tmut_shell_window_set_child (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction)48 {49 TMUT_SHELL_WINDOW_GET_CLASS (self)->set_child_func (self, child, instruction);50 return;51 }52 53 46 static void 54 47 tmut_shell_window_set_child_default (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction) … … 75 68 } 76 69 77 static void 78 on_back_clicked (GtkButton *button, gpointer user_data) 79 { 80 TMutShellWindowPriv *priv = TMUT_SHELL_WINDOW_GET_PRIVATE (user_data); 70 71 static void 72 tmut_shell_window_back_default (TMutShellWindow *self) 73 { 74 TMutShellWindowPriv *priv = TMUT_SHELL_WINDOW_GET_PRIVATE (self); 81 75 GList *first = NULL; 82 76 gint cnt = g_list_length (priv->childs); … … 97 91 98 92 } 99 93 } 94 95 static void 96 on_back_clicked (GtkButton *button, gpointer user_data) 97 { 98 tmut_shell_window_back ((TMutShellWindow *) user_data); 100 99 return; 101 100 } … … 116 115 } 117 116 118 GtkProgress*119 tmut_shell_window_get_progress (TMutShellWindow *self)120 {121 return TMUT_SHELL_WINDOW_GET_CLASS (self)->get_progress_func (self);122 }123 117 124 118 static GtkProgress* … … 171 165 } 172 166 167 GtkProgress* 168 tmut_shell_window_get_progress (TMutShellWindow *self) 169 { 170 return TMUT_SHELL_WINDOW_GET_CLASS (self)->get_progress_func (self); 171 } 172 173 void 174 tmut_shell_window_back (TMutShellWindow *self) 175 { 176 TMUT_SHELL_WINDOW_GET_CLASS (self)->back_func (self); 177 return; 178 } 179 180 void 181 tmut_shell_window_set_child (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction) 182 { 183 TMUT_SHELL_WINDOW_GET_CLASS (self)->set_child_func (self, child, instruction); 184 return; 185 } 186 173 187 static void 174 188 tmut_shell_window_instance_init (GTypeInstance *instance, gpointer g_class) … … 214 228 object_class = (GObjectClass*) class; 215 229 230 class->back_func = tmut_shell_window_back_default; 216 231 class->set_child_func = tmut_shell_window_set_child_default; 217 232 class->get_progress_func = tmut_shell_window_get_progress_default; trunk/src/tmut-shell-window.h
r19 r25 54 54 55 55 void (*set_child_func) (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction); 56 void (*back_func) (TMutShellWindow *self); 56 57 GtkProgress* (*get_progress_func) (TMutShellWindow *self); 57 58 … … 68 69 TMutShellWindow* tmut_shell_window_new (void); 69 70 71 void tmut_shell_window_back (TMutShellWindow *self); 70 72 void tmut_shell_window_set_child (TMutShellWindow *self, TMutShellChild *child, const gchar *instruction); 71 73 GtkProgress* tmut_shell_window_get_progress (TMutShellWindow *self);
