Added Help to the help
This commit is contained in:
parent
70add94920
commit
1d050f4808
12 changed files with 15 additions and 9 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -1,2 +1,7 @@
|
||||||
glade/test_window.glade~
|
glade/test_window.glade~
|
||||||
output.log
|
output.log
|
||||||
|
main.o
|
||||||
|
logger.o
|
||||||
|
help.o
|
||||||
|
test_gtk.o
|
||||||
|
os_info.o
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,9 @@
|
||||||
#include "help.h"
|
#include "help.h"
|
||||||
|
|
||||||
void outputHelp(){
|
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");
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
GtkWidget *level;
|
GtkWidget *level;
|
||||||
GtkBuilder *builder;
|
GtkBuilder *builder;
|
||||||
|
|
||||||
void createTestWindow(){
|
void createGTKTestWindow(){
|
||||||
|
|
||||||
gtk_init(0, NULL);
|
gtk_init(0, NULL);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#define _TEST_GTK_H_
|
#define _TEST_GTK_H_
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
void createTestWindow();
|
void createGTKTestWindow();
|
||||||
void on_button1_clicked(GtkButton *b);
|
void on_button1_clicked(GtkButton *b);
|
||||||
void on_gay_check_toggled(GtkToggleButton *t);
|
void on_gay_check_toggled(GtkToggleButton *t);
|
||||||
void on_window_focus_out_event(GtkWindow *w);
|
void on_window_focus_out_event(GtkWindow *w);
|
||||||
|
|
|
||||||
BIN
help.o
BIN
help.o
Binary file not shown.
BIN
logger.o
BIN
logger.o
Binary file not shown.
BIN
logo.o
BIN
logo.o
Binary file not shown.
7
main.c
7
main.c
|
|
@ -10,13 +10,9 @@
|
||||||
#include <gdk/gdk.h>
|
#include <gdk/gdk.h>
|
||||||
#include <gdk/gdkconfig.h>
|
#include <gdk/gdkconfig.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "commands/test_gtk.h"
|
#include "commands/test_gtk.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "etc/logo.h"
|
#include "etc/logo.h"
|
||||||
#include "utils/logger.h"
|
#include "utils/logger.h"
|
||||||
#include "utils/os_info.h"
|
#include "utils/os_info.h"
|
||||||
|
|
@ -47,10 +43,11 @@ int main(int argc, char *argv[]){
|
||||||
logger("Logo Displayed.");
|
logger("Logo Displayed.");
|
||||||
|
|
||||||
if(!strcmp(argv[1], "--help")){
|
if(!strcmp(argv[1], "--help")){
|
||||||
|
logger("Showing Help");
|
||||||
outputHelp();
|
outputHelp();
|
||||||
} else if (!strcmp(argv[1], "--gtk-test")){
|
} else if (!strcmp(argv[1], "--gtk-test")){
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
createTestWindow();
|
createGTKTestWindow();
|
||||||
#else
|
#else
|
||||||
printf("[ERROR] gtk-test is linux only.\n");
|
printf("[ERROR] gtk-test is linux only.\n");
|
||||||
logger("[ERROR] gtk-test is linux only.");
|
logger("[ERROR] gtk-test is linux only.");
|
||||||
|
|
|
||||||
BIN
main.o
BIN
main.o
Binary file not shown.
BIN
netbenixCMD
BIN
netbenixCMD
Binary file not shown.
BIN
os_info.o
BIN
os_info.o
Binary file not shown.
BIN
test_gtk.o
BIN
test_gtk.o
Binary file not shown.
Reference in a new issue