[gnome-nibbles] Removed extra way of parsing CLI options.. removed TODOs from main
- From: Bryan Quigley <bryanquigs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] Removed extra way of parsing CLI options.. removed TODOs from main
- Date: Fri, 24 Jan 2014 04:40:58 +0000 (UTC)
commit 218f0a38ddca2cec62b3d28a60064bdb4a5cbbc7
Author: Bryan Quigley <bryanquigs src gnome org>
Date: Thu Jan 23 23:40:19 2014 -0500
Removed extra way of parsing CLI options.. removed TODOs from main
src/main.c | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 1e66f2c..43c0a7a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -675,11 +675,7 @@ activate (GtkApplication* app,
int
main (int argc, char **argv)
{
- GOptionContext *context;
- gboolean retval;
int i;
- GError *error = NULL;
- //TODO: Review next 2 lines before finishing conversion
GtkApplication *app;
int status;
@@ -698,18 +694,6 @@ main (int argc, char **argv)
g_set_application_name (_("Nibbles"));
- context = g_option_context_new (NULL);
- g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
- g_option_context_add_group (context, gtk_get_option_group (TRUE));
-
- retval = g_option_context_parse (context, &argc, &argv, &error);
- g_option_context_free (context);
- if (!retval) {
- g_print ("%s\n", error->message);
- g_error_free (error);
- exit (1);
- }
-
if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) {
GtkWidget *dialog = gtk_message_dialog_new (NULL,
GTK_DIALOG_MODAL,
@@ -740,7 +724,6 @@ main (int argc, char **argv)
GAMES_SCORES_STYLE_PLAIN_DESCENDING);
properties = gnibbles_properties_new ();
- //TODO: Review to EOF before finishing conversion
gnibbles_load_pixmap (properties->tilesize);
app = gtk_application_new (NULL, G_APPLICATION_FLAGS_NONE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]