Merge /u/l-chang/cdesktopenv1/ branch master into master

https://sourceforge.net/p/cdesktopenv/code/merge-requests/22/
This commit is contained in:
Jon Trulson
2021-02-14 20:37:30 +00:00
8 changed files with 48 additions and 22 deletions

View File

@@ -1881,12 +1881,14 @@ setup_vwr_graphics(
GCForeground|GCBackground|GCGraphicsExposures|GCLineWidth, &gcvalues);
}
if (!ui_handle->sm_font)
{
if (!ui_handle->sm_font)
ui_handle->sm_font = (XFontStruct *)XLoadQueryFont(dpy, sm_font_name);
XSetFont(dpy, ui_handle->normal_gc, ui_handle->sm_font->fid);
XSetFont(dpy, ui_handle->select_gc, ui_handle->sm_font->fid);
}
if (!ui_handle->sm_font)
ui_handle->sm_font = (XFontStruct *)XLoadQueryFont(dpy, XmDEFAULT_FONT);
XSetFont(dpy, ui_handle->normal_gc, ui_handle->sm_font->fid);
XSetFont(dpy, ui_handle->select_gc, ui_handle->sm_font->fid);
}
/*

View File

@@ -722,7 +722,7 @@ set_edit_menu_stateCB(
BOOL clipboard_full = False;
WidgetList menu_items;
int num_menu_items;
int value;
XtArgVal value;
AB_EDIT_TYPE item_key;
int i;

View File

@@ -1026,8 +1026,8 @@ delete_selected_item(
)
{
ABObj current_obj;
ABObj *iobj_list,
*new_iobj_list;
ABObj *iobj_list;
ABObj *new_iobj_list = NULL;
int num_items;
int select_pos;
int i, j;
@@ -1536,7 +1536,7 @@ set_edit_menu_stateCB(
BOOL clipboard_full = False;
WidgetList menu_items;
int num_menu_items;
int item_key;
XtArgVal item_key;
int i;
listitem_exists = (pis->current_item != NULL);

View File

@@ -1922,6 +1922,12 @@ show_editor_view(Calendar *c, Glance glance) {
Editor *e = (Editor *)c->editor;
Props_pu *p = (Props_pu *)c->properties_pu;
if (get_data_version(c->cal_handle) <= CMS_VERS_2) {
backend_err_msg(c->frame, c->view->current_calendar,
CSA_E_NOT_SUPPORTED, p->xm_error_pixmap);
return;
}
if (!e->view_frame) {
e->cal = c;
e_build_view_popup(e);

View File

@@ -1684,7 +1684,7 @@ attrs_to_string(CSA_attribute * attrs, int num_attrs)
CSA_access_list a_ptr;
char *buffer = malloc(1);
char tmp_buf[MAXNAMELEN];
int advance_time;
time_t advance_time;
buffer[0] = '\0';
for (i = 0; i < num_attrs; i++) {

View File

@@ -1153,9 +1153,14 @@ create_replace_rename_dialog(Widget parent_widget,
XtFree(title);
XtFree(actions.actionList[1].label);
actions.actionList[1].label = orig_label;
if (actions.actionList[1].label != orig_label) {
XtFree(actions.actionList[1].label);
actions.actionList[1].label = orig_label;
}
actions.actionList[1].msg_num = orig_msg_num;
return;
} /* end create_replace_rename_dialog */

View File

@@ -1357,7 +1357,9 @@ printVersion(
/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
snoopStream << "ttsnoop: " << globalVersionString << endl;
snoopStream << "tt_c.h: " << TT_VERSION << endl;
snoopStream << "libtt: " << _tt_lib_version << endl;
if (_tt_lib_version)
snoopStream << "libtt: " << _tt_lib_version << endl;
/*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
}