Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
994dd62a
Commit
994dd62a
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add a C version of the glade file and an install target to the CMake file.
parent
ab6fe14d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/gtkmonitor/CMakeLists.txt
+4
-1
4 additions, 1 deletion
src/sbbs3/gtkmonitor/CMakeLists.txt
src/sbbs3/gtkmonitor/gtkmonitor.c
+3
-10
3 additions, 10 deletions
src/sbbs3/gtkmonitor/gtkmonitor.c
src/sbbs3/gtkmonitor/gtkmonitor_glade.c
+6857
-0
6857 additions, 0 deletions
src/sbbs3/gtkmonitor/gtkmonitor_glade.c
with
6864 additions
and
11 deletions
src/sbbs3/gtkmonitor/CMakeLists.txt
+
4
−
1
View file @
994dd62a
...
...
@@ -8,12 +8,15 @@ find_package(GTK2 2.6 COMPONENTS gtk)
if
(
GTK2_FOUND
)
add_executable
(
gtkmonitor
gtkmonitor.c
gtkmonitor_glade.c
util_funcs.c
events.c
)
double_require_libs
(
gtkmonitor sbbs xpdev smblib
)
double_require_libs
(
gtkmonitor sbbs xpdev smblib
comio
)
target_include_directories
(
gtkmonitor PRIVATE ..
)
target_link_libraries
(
gtkmonitor
${
GTK2_LIBRARIES
}
)
target_include_directories
(
gtkmonitor PRIVATE
${
GTK2_INCLUDE_DIRS
}
)
target_compile_definitions
(
gtkmonitor PRIVATE
${
GTK2_DEFINITIONS
}
)
install
(
TARGETS gtkmonitor DESTINATION bin
)
endif
(
GTK2_FOUND
)
This diff is collapsed.
Click to expand it.
src/sbbs3/gtkmonitor/gtkmonitor.c
+
3
−
10
View file @
994dd62a
...
...
@@ -14,7 +14,7 @@ int quickslots=0;
GtkListStore
*
quickstore
=
NULL
;
GtkBuilder
*
builder
;
struct
gtkmonitor_config
gtkm_conf
;
char
glade_path
[
MAX_PATH
+
1
];
extern
const
char
builder_interface
[
];
void
read_ini
(
void
)
{
...
...
@@ -474,15 +474,8 @@ int main(int argc, char *argv[]) {
gtk_init
(
&
argc
,
&
argv
);
/* load the interface */
strcpy
(
glade_path
,
argv
[
0
]);
strcpy
(
getfname
(
glade_path
),
"gtkmonitor.glade"
);
builder
=
gtk_builder_new
();
if
(
!
gtk_builder_add_from_file
(
builder
,
glade_path
,
&
error
))
{
g_warning
(
"Couldn't load builder file: %s"
,
error
->
message
);
g_error_free
(
error
);
}
builder
=
gtk_builder_new
();
gtk_builder_add_from_string
(
builder
,
builder_interface
,
-
1
,
NULL
);
/* connect the signals in the interface */
gtk_builder_connect_signals
(
builder
,
NULL
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/gtkmonitor/gtkmonitor_glade.c
0 → 100644
+
6857
−
0
View file @
994dd62a
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment