You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tech/languages/c/gtk.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -10,14 +10,14 @@ Gtk+ is a cross-platform GUI toolkit created for the development of the GIMP pro
10
10
11
11
For C programming with Gtk+ you need to install the development version of the important GNOME libraries. Those contain the header files and additional linker information:
In the program above we initially included gtk/gtk.h, which declares all the gtk+ objects used in the rest of the program:
54
+
In the program above we initially included `gtk/gtk.h`, which declares all the gtk+ objects used in the rest of the program:
55
55
56
56
```c
57
57
#include<gtk/gtk.h>
@@ -63,13 +63,13 @@ or
63
63
#include<gtk-3.0/gtk/gtk.h>
64
64
```
65
65
66
-
After the declaration of the window object variable, we call the gtk_init method which initializes the library and its internal procedures.
66
+
After the declaration of the window object variable, we call the `gtk_init` method which initializes the library and its internal procedures.
67
67
68
68
```c
69
69
gtk_init (&argc, &argv);
70
70
```
71
71
72
-
The next line creates a GtkWindow object with the GTK_WINDOW_TOPLEVEL type. Nearly always, that's the type of the GtkWindow, but it could differ if you are implementing something else.
72
+
The next line creates a GtkWindow object with the `GTK_WINDOW_TOPLEVEL` type. Nearly always, that's the type of the GtkWindow, but it could differ if you are implementing something else.
73
73
74
74
```c
75
75
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -81,7 +81,7 @@ Below that, we set the title of the GtkWindow to a string of our choice:
0 commit comments