This repository has been archived by the owner on Oct 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example of using libfirtray to display gtk version
- Loading branch information
foudfou
committed
Mar 21, 2013
1 parent
d91bfd1
commit 2708073
Showing
8 changed files
with
89 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
#include <gdk/gdk.h> | ||
|
||
extern int gdk_is_window(void* obj); | ||
extern int gtk_is_window(void* obj); | ||
extern int gtk_is_widget(void* obj); | ||
|
||
/* the library version (not headers). These functions are provided natively in | ||
* gtk+-3.0 */ | ||
extern unsigned int gtk_get_major_version(void); | ||
extern unsigned int gtk_get_minor_version(void); | ||
extern unsigned int gtk_get_micro_version(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include "../src/lib/linux/firetray.h" | ||
|
||
int main(int argc, char** argv) { | ||
printf("gtk version: %d.%d.%d\n", | ||
gtk_get_major_version(), | ||
gtk_get_minor_version(), | ||
gtk_get_micro_version() | ||
); | ||
|
||
return(EXIT_SUCCESS); | ||
} |