Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
4f6fe8c4
Commit
4f6fe8c4
authored
19 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
change show message func. to allow specifying of text justification.
parent
119d0c7b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/include/ZMap/zmapUtilsGUI.h
+3
-3
3 additions, 3 deletions
src/include/ZMap/zmapUtilsGUI.h
src/zmapUtils/zmapGUIutils.c
+7
-5
7 additions, 5 deletions
src/zmapUtils/zmapGUIutils.c
with
10 additions
and
8 deletions
src/include/ZMap/zmapUtilsGUI.h
+
3
−
3
View file @
4f6fe8c4
...
...
@@ -25,9 +25,9 @@
* Description: Set of general GUI functions.
*
* HISTORY:
* Last edited:
Feb
2
0
1
0:08
2006 (edgrif)
* Last edited:
Mar
2
1
1
3:33
2006 (edgrif)
* Created: Fri Nov 4 16:59:52 2005 (edgrif)
* CVS info: $Id: zmapUtilsGUI.h,v 1.
7
2006-0
2
-21 1
5
:0
6:55
edgrif Exp $
* CVS info: $Id: zmapUtilsGUI.h,v 1.
8
2006-0
3
-21 1
4
:0
7:39
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAP_UTILS_GUI_H
...
...
@@ -73,7 +73,7 @@ void zMapGUIGetPixelsPerUnit(ZMapGUIPixelConvType conv_type, GtkWidget *widget,
char
*
zMapGUIMakeTitleString
(
char
*
window_type
,
char
*
message
)
;
void
zMapGUIShowMsg
(
ZMapMsgType
msg_type
,
char
*
msg
)
;
void
zMapGUIShowMsg
OnTop
(
GtkWindow
*
parent
,
ZMapMsgType
msg_type
,
char
*
msg
)
;
void
zMapGUIShowMsg
Full
(
GtkWindow
*
parent
,
char
*
msg
,
ZMapMsgType
msg_type
,
GtkJustification
justify
)
;
gboolean
zMapGUIShowChoice
(
GtkWindow
*
parent
,
ZMapMsgType
msg_type
,
char
*
msg
)
;
void
zMapGUIShowAbout
(
void
)
;
...
...
This diff is collapsed.
Click to expand it.
src/zmapUtils/zmapGUIutils.c
+
7
−
5
View file @
4f6fe8c4
...
...
@@ -25,9 +25,9 @@
* Description:
* Exported functions: See ZMap/zmapUtilsGUI.h
* HISTORY:
* Last edited: Mar 1
7
13:
16
2006 (edgrif)
* Last edited: Mar
2
1 13:
38
2006 (edgrif)
* Created: Thu Jul 24 14:37:35 2003 (edgrif)
* CVS info: $Id: zmapGUIutils.c,v 1.1
3
2006-03-1
7
1
7
:0
1:4
9 edgrif Exp $
* CVS info: $Id: zmapGUIutils.c,v 1.1
4
2006-03-
2
1 1
4
:0
7:3
9 edgrif Exp $
*-------------------------------------------------------------------
*/
...
...
@@ -144,7 +144,7 @@ void zMapGUIShowAbout(void)
* */
void
zMapGUIShowMsg
(
ZMapMsgType
msg_type
,
char
*
msg
)
{
zMapGUIShowMsg
OnTop
(
NULL
,
msg_type
,
msg
)
;
zMapGUIShowMsg
Full
(
NULL
,
msg
,
msg_type
,
GTK_JUSTIFY_CENTER
)
;
return
;
}
...
...
@@ -167,7 +167,9 @@ void zMapGUIShowMsg(ZMapMsgType msg_type, char *msg)
* @param msg Message to be displayed in dialog.
* @return nothing
* */
void
zMapGUIShowMsgOnTop
(
GtkWindow
*
parent
,
ZMapMsgType
msg_type
,
char
*
msg
)
void
zMapGUIShowMsgFull
(
GtkWindow
*
parent
,
char
*
msg
,
ZMapMsgType
msg_type
,
GtkJustification
justify
)
{
GtkWidget
*
dialog
,
*
button
,
*
label
;
char
*
title
=
NULL
;
...
...
@@ -214,7 +216,7 @@ void zMapGUIShowMsgOnTop(GtkWindow *parent, ZMapMsgType msg_type, char *msg)
gtk_box_pack_start
(
GTK_BOX
(
GTK_DIALOG
(
dialog
)
->
vbox
),
button
,
TRUE
,
TRUE
,
20
);
gtk_button_set_relief
(
GTK_BUTTON
(
button
),
GTK_RELIEF_NONE
)
;
label
=
gtk_bin_get_child
(
GTK_BIN
(
button
))
;
/* Center + wrap long lines. */
gtk_label_set_justify
(
GTK_LABEL
(
label
),
GTK_JUSTIFY_CENTER
)
;
gtk_label_set_justify
(
GTK_LABEL
(
label
),
justify
)
;
gtk_label_set_line_wrap
(
GTK_LABEL
(
label
),
TRUE
)
;
gtk_signal_connect
(
GTK_OBJECT
(
button
),
"clicked"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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