Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed build in embedded mode

  • Loading branch information...
commit f8f7b59e676159c7516a773eae9aff4e09ba5b6d 1 parent 3ebe09f
Pierre Pronchery authored

Showing 1 changed file with 37 additions and 3 deletions. Show diff stats Hide diff stats

  1. 40  src/window.c
40  src/window.c
@@ -44,7 +44,11 @@ struct _TodoWindow
44 44
 /* callbacks */
45 45
 static void _todowindow_on_close(gpointer data);
46 46
 static gboolean _todowindow_on_closex(gpointer data);
  47
+static void _todowindow_on_edit(gpointer data);
  48
+static void _todowindow_on_new(gpointer data);
  49
+static void _todowindow_on_preferences(gpointer data);
47 50
 
  51
+#ifndef EMBEDDED
48 52
 /* menus */
49 53
 /* file menu */
50 54
 static void _todowindow_on_file_new(gpointer data);
@@ -63,6 +67,7 @@ static void _todowindow_on_view_remaining_tasks(gpointer data);
63 67
 
64 68
 /* help menu */
65 69
 static void _todowindow_on_help_about(gpointer data);
  70
+#endif
66 71
 
67 72
 /* constants */
68 73
 /* accelerators */
@@ -219,6 +224,34 @@ static gboolean _todowindow_on_closex(gpointer data)
219 224
 }
220 225
 
221 226
 
  227
+/* todowindow_on_edit */
  228
+static void _todowindow_on_edit(gpointer data)
  229
+{
  230
+	TodoWindow * todo = data;
  231
+
  232
+	todo_task_edit(todo->todo);
  233
+}
  234
+
  235
+
  236
+/* todowindow_on_new */
  237
+static void _todowindow_on_new(gpointer data)
  238
+{
  239
+	TodoWindow * todo = data;
  240
+
  241
+	todo_task_add(todo->todo, NULL);
  242
+}
  243
+
  244
+
  245
+/* todowindow_on_preferences */
  246
+static void _todowindow_on_preferences(gpointer data)
  247
+{
  248
+	TodoWindow * todo = data;
  249
+
  250
+	todo_show_preferences(todo->todo, TRUE);
  251
+}
  252
+
  253
+
  254
+#ifndef EMBEDDED
222 255
 /* file menu */
223 256
 /* todowindow_on_file_close */
224 257
 static void _todowindow_on_file_close(gpointer data)
@@ -234,7 +267,7 @@ static void _todowindow_on_file_edit(gpointer data)
234 267
 {
235 268
 	TodoWindow * todo = data;
236 269
 
237  
-	todo_task_edit(todo->todo);
  270
+	_todowindow_on_edit(todo);
238 271
 }
239 272
 
240 273
 
@@ -243,7 +276,7 @@ static void _todowindow_on_file_new(gpointer data)
243 276
 {
244 277
 	TodoWindow * todo = data;
245 278
 
246  
-	todo_task_add(todo->todo, NULL);
  279
+	_todowindow_on_new(todo);
247 280
 }
248 281
 
249 282
 
@@ -262,7 +295,7 @@ static void _todowindow_on_edit_preferences(gpointer data)
262 295
 {
263 296
 	TodoWindow * todo = data;
264 297
 
265  
-	todo_show_preferences(todo->todo, TRUE);
  298
+	_todowindow_on_preferences(todo);
266 299
 }
267 300
 
268 301
 
@@ -311,3 +344,4 @@ static void _todowindow_on_help_about(gpointer data)
311 344
 
312 345
 	todo_about(todo->todo);
313 346
 }
  347
+#endif

0 notes on commit f8f7b59

Please sign in to comment.
Something went wrong with that request. Please try again.