Added Help to the help

This commit is contained in:
netbenixcn 2020-06-02 12:05:14 +02:00
parent 70add94920
commit 1d050f4808
12 changed files with 15 additions and 9 deletions

7
.gitignore vendored
View file

@ -1,2 +1,7 @@
glade/test_window.glade~
output.log
output.log
main.o
logger.o
help.o
test_gtk.o
os_info.o

View file

@ -12,5 +12,9 @@
#include "help.h"
void outputHelp(){
printf("usage: netbenixCMD [option]\n");
printf("Options:\n");
printf("--help : this help page\n");
printf("--gtk-test : opens the gtk test ; LINUX ONLY\n");
printf("--os-info : shows your os informations\n");
}

View file

@ -10,7 +10,7 @@
GtkWidget *level;
GtkBuilder *builder;
void createTestWindow(){
void createGTKTestWindow(){
gtk_init(0, NULL);

View file

@ -2,7 +2,7 @@
#define _TEST_GTK_H_
#include <gtk/gtk.h>
void createTestWindow();
void createGTKTestWindow();
void on_button1_clicked(GtkButton *b);
void on_gay_check_toggled(GtkToggleButton *t);
void on_window_focus_out_event(GtkWindow *w);

BIN
help.o

Binary file not shown.

BIN
logger.o

Binary file not shown.

BIN
logo.o

Binary file not shown.

7
main.c
View file

@ -10,13 +10,9 @@
#include <gdk/gdk.h>
#include <gdk/gdkconfig.h>
#include <gtk/gtk.h>
#endif
#include "commands/test_gtk.h"
#endif
#include "etc/logo.h"
#include "utils/logger.h"
#include "utils/os_info.h"
@ -47,10 +43,11 @@ int main(int argc, char *argv[]){
logger("Logo Displayed.");
if(!strcmp(argv[1], "--help")){
logger("Showing Help");
outputHelp();
} else if (!strcmp(argv[1], "--gtk-test")){
#ifdef linux
createTestWindow();
createGTKTestWindow();
#else
printf("[ERROR] gtk-test is linux only.\n");
logger("[ERROR] gtk-test is linux only.");

BIN
main.o

Binary file not shown.

Binary file not shown.

BIN
os_info.o

Binary file not shown.

Binary file not shown.