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
e195ddfe
Commit
e195ddfe
authored
18 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Properly use glade_path for all new widgets.
parent
73a38c45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sbbs3/gtkuseredit/events.c
+3
-3
3 additions, 3 deletions
src/sbbs3/gtkuseredit/events.c
src/sbbs3/gtkuseredit/gtkuseredit.c
+2
-2
2 additions, 2 deletions
src/sbbs3/gtkuseredit/gtkuseredit.c
src/sbbs3/gtkuseredit/gtkuseredit.h
+1
-0
1 addition, 0 deletions
src/sbbs3/gtkuseredit/gtkuseredit.h
with
6 additions
and
5 deletions
src/sbbs3/gtkuseredit/events.c
+
3
−
3
View file @
e195ddfe
...
...
@@ -1904,7 +1904,7 @@ void last_user(GtkWidget *w, gpointer data)
void
show_about_box
(
GtkWidget
*
unused
,
gpointer
data
)
{
GladeXML
*
axml
;
axml
=
glade_xml_new
(
"gtkuseredit.glade"
,
"AboutWindow"
,
NULL
);
axml
=
glade_xml_new
(
glade_path
,
"AboutWindow"
,
NULL
);
if
(
axml
==
NULL
)
{
fprintf
(
stderr
,
"Could not locate AboutWindow widget
\n
"
);
return
;
...
...
@@ -1966,7 +1966,7 @@ void find_user(GtkWidget *t, gpointer data)
nu
=
matchuser
(
&
cfg
,
(
char
*
)
gtk_entry_get_text
(
GTK_ENTRY
(
w
)),
TRUE
);
if
(
nu
==
0
)
{
GladeXML
*
cxml
;
cxml
=
glade_xml_new
(
"gtkuseredit.glade"
,
"NotFoundWindow"
,
NULL
);
cxml
=
glade_xml_new
(
glade_path
,
"NotFoundWindow"
,
NULL
);
/* connect the signals in the interface */
glade_xml_signal_autoconnect
(
cxml
);
if
(
cxml
==
NULL
)
...
...
@@ -2011,7 +2011,7 @@ int get_date(GtkWidget *t, isoDate_t *date)
isoDate_t
odate
=*
date
;
got_date
=
0
;
cxml
=
glade_xml_new
(
"gtkuseredit.glade"
,
"CalendarWindow"
,
NULL
);
cxml
=
glade_xml_new
(
glade_path
,
"CalendarWindow"
,
NULL
);
if
(
cxml
==
NULL
)
{
fprintf
(
stderr
,
"Could not locate Calendar Window XML
\n
"
);
return
(
-
1
);
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/gtkuseredit/gtkuseredit.c
+
2
−
2
View file @
e195ddfe
...
...
@@ -12,6 +12,7 @@ user_t user;
GladeXML
*
xml
;
int
totalusers
=
0
;
int
current_user
=
0
;
char
glade_path
[
MAX_PATH
+
1
];
/* Refreshes global variables... ie: Number of users */
int
refresh_globals
(
void
)
...
...
@@ -124,7 +125,6 @@ int read_config(void)
}
int
main
(
int
argc
,
char
*
argv
[])
{
char
glade_path
[
MAX_PATH
+
1
];
gtk_init
(
&
argc
,
&
argv
);
glade_init
();
...
...
@@ -149,7 +149,7 @@ int main(int argc, char *argv[]) {
update_current_user
(
nu
);
else
{
GladeXML
*
cxml
;
cxml
=
glade_xml_new
(
"gtkuseredit.glade"
,
"NotFoundWindow"
,
NULL
);
cxml
=
glade_xml_new
(
glade_path
,
"NotFoundWindow"
,
NULL
);
glade_xml_signal_autoconnect
(
cxml
);
gtk_window_present
(
GTK_WINDOW
(
glade_xml_get_widget
(
cxml
,
"NotFoundWindow"
)));
}
...
...
This diff is collapsed.
Click to expand it.
src/sbbs3/gtkuseredit/gtkuseredit.h
+
1
−
0
View file @
e195ddfe
...
...
@@ -11,5 +11,6 @@ extern user_t user;
extern
GladeXML
*
xml
;
extern
int
totalusers
;
extern
int
current_user
;
extern
char
glade_path
[
MAX_PATH
+
1
];
#endif
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