fix style issues in main.c
This commit is contained in:
parent
187ae2a74b
commit
d1e6e7b05a
6
main.c
6
main.c
@ -31,7 +31,7 @@ struct application_data {
|
|||||||
|
|
||||||
static void app_quit(GSimpleAction *action, GVariant *parameter, gpointer user_data)
|
static void app_quit(GSimpleAction *action, GVariant *parameter, gpointer user_data)
|
||||||
{
|
{
|
||||||
struct application_data *appdata = (struct application_data *)user_data;
|
const struct application_data * const appdata = (const struct application_data *)user_data;
|
||||||
(void)action;
|
(void)action;
|
||||||
(void)parameter;
|
(void)parameter;
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ static void app_about(GSimpleAction *action, GVariant *parameter, gpointer user_
|
|||||||
{
|
{
|
||||||
GtkBuilder *builder;
|
GtkBuilder *builder;
|
||||||
GtkDialog *dialog;
|
GtkDialog *dialog;
|
||||||
struct application_data *appdata = (struct application_data *)user_data;
|
const struct application_data * const appdata = (const struct application_data *)user_data;
|
||||||
(void)action;
|
(void)action;
|
||||||
(void)parameter;
|
(void)parameter;
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ const static GActionEntry app_actions[] = {
|
|||||||
static void gapp_activate(GApplication *app, gpointer user_data)
|
static void gapp_activate(GApplication *app, gpointer user_data)
|
||||||
{
|
{
|
||||||
GtkWindow *main_window;
|
GtkWindow *main_window;
|
||||||
struct application_data *appdata = (struct application_data *)user_data;
|
struct application_data * const appdata = (struct application_data *)user_data;
|
||||||
|
|
||||||
main_window = create_main_window();
|
main_window = create_main_window();
|
||||||
appdata->main_window = main_window;
|
appdata->main_window = main_window;
|
||||||
|
Loading…
Reference in New Issue
Block a user