#include <gtk/gtk.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include "fileselect.c"
#include "menu.c"
Go to the source code of this file.
Functions | |
static gboolean | delete_event (GtkWidget *widget, GdkEvent *event, gpointer data) |
This function would be invoked when the user clicks on quit button or quits the application fires the delete event signal but first check if the file is modified or not. | |
void | entrycursor (GtkWidget *entry_text, gpointer data) |
This function sets the entry text. | |
static void | err_msg (const gchar *msg) |
void | gcc_entry (GtkWidget *widget, gpointer entry) |
This function would be invoked when the user enters the gcc command into the gtkTextEntry. | |
int | main (int argc, char *argv[]) |
This is where program starts and generates a C editor along with gcc Compile button. | |
Variables | |
GtkWidget * | window1 |
Gtk Window variable. |
Definition in file editor.c.
static gboolean delete_event | ( | GtkWidget * | widget, | |
GdkEvent * | event, | |||
gpointer | data | |||
) | [static] |
This function would be invoked when the user clicks on quit button or quits the application fires the delete event signal but first check if the file is modified or not.
Definition at line 43 of file editor.c.
References save_if_modified().
Referenced by main().
void entrycursor | ( | GtkWidget * | entry_text, | |
gpointer | data | |||
) |
static void err_msg | ( | const gchar * | msg | ) | [static] |
void gcc_entry | ( | GtkWidget * | widget, | |
gpointer | entry | |||
) |
This function would be invoked when the user enters the gcc command into the gtkTextEntry.
Definition at line 53 of file editor.c.
References entry_text.
Referenced by main().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
This is where program starts and generates a C editor along with gcc Compile button.
argc | Number of arguments passed to program | |
argv | Array of arugments passed to program |
Definition at line 79 of file editor.c.
References buf, buf2, delete_event(), entry, err_msg(), gcc_entry(), gtk_text_view_notify_cursor_position(), load_file(), main_menu, menu_def, status, submit_clicked(), view, view2, and window.
GtkWidget* window1 |
Gtk Window variable.
Definition at line 12 of file editor.c.
Referenced by next_button_clicked(), show_about(), and show_help().