Compare commits
9 Commits
wip/checks
...
wip/gtk3
Author | SHA1 | Date | |
---|---|---|---|
![]() |
07873ca4e9 | ||
![]() |
bde8d9d20a | ||
![]() |
c550dc9cb1 | ||
![]() |
df8f516a40 | ||
![]() |
67b25fddf1 | ||
![]() |
bb7a03e9f6 | ||
![]() |
9d175cc459 | ||
![]() |
4ad7afe884 | ||
![]() |
221283ba19 |
1
.github/workflows/msys-build.yml
vendored
1
.github/workflows/msys-build.yml
vendored
@@ -19,6 +19,7 @@ jobs:
|
||||
mingw-w64-x86_64-python3-cffi
|
||||
mingw-w64-x86_64-meson
|
||||
mingw-w64-x86_64-gtk2
|
||||
mingw-w64-x86_64-gtk-update-icon-cache
|
||||
mingw-w64-x86_64-luajit
|
||||
mingw-w64-x86_64-desktop-file-utils
|
||||
|
||||
|
@@ -468,6 +468,7 @@ const struct prefs vars[] =
|
||||
{"gui_win_fullscreen", P_OFFINT (hex_gui_win_fullscreen), TYPE_INT},
|
||||
{"gui_win_left", P_OFFINT (hex_gui_win_left), TYPE_INT},
|
||||
{"gui_win_modes", P_OFFINT (hex_gui_win_modes), TYPE_BOOL},
|
||||
{"gui_win_nick", P_OFFINT (hex_gui_win_nick), TYPE_BOOL},
|
||||
{"gui_win_save", P_OFFINT (hex_gui_win_save), TYPE_BOOL},
|
||||
{"gui_win_state", P_OFFINT (hex_gui_win_state), TYPE_INT},
|
||||
{"gui_win_swap", P_OFFINT (hex_gui_win_swap), TYPE_BOOL},
|
||||
@@ -772,6 +773,7 @@ load_default_config(void)
|
||||
prefs.hex_gui_ulist_count = 1;
|
||||
prefs.hex_gui_ulist_icons = 1;
|
||||
prefs.hex_gui_ulist_style = 1;
|
||||
prefs.hex_gui_win_nick = 1;
|
||||
prefs.hex_gui_win_save = 1;
|
||||
prefs.hex_input_filter_beep = 1;
|
||||
prefs.hex_input_flash_hilight = 1;
|
||||
|
@@ -150,6 +150,7 @@ struct hexchatprefs
|
||||
unsigned int hex_gui_ulist_style;
|
||||
unsigned int hex_gui_usermenu;
|
||||
unsigned int hex_gui_win_modes;
|
||||
unsigned int hex_gui_win_nick;
|
||||
unsigned int hex_gui_win_save;
|
||||
unsigned int hex_gui_win_swap;
|
||||
unsigned int hex_gui_win_ucount;
|
||||
|
@@ -1474,10 +1474,17 @@ inbound_user_info (session *sess, char *chan, char *user, char *host,
|
||||
for (list = sess_list; list; list = list->next)
|
||||
{
|
||||
sess = list->data;
|
||||
if (sess->type == SESS_CHANNEL && sess->server == serv)
|
||||
if (sess->server != serv)
|
||||
continue;
|
||||
|
||||
if (sess->type == SESS_CHANNEL)
|
||||
{
|
||||
userlist_add_hostname (sess, nick, uhost, realname, servname, account, away);
|
||||
}
|
||||
else if (sess->type == SESS_DIALOG && uhost && !serv->p_cmp (sess->channel, nick))
|
||||
{
|
||||
set_topic (sess, uhost, uhost);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1728,6 +1735,7 @@ static const char * const supported_caps[] = {
|
||||
"setname",
|
||||
"invite-notify",
|
||||
"account-tag",
|
||||
"extended-monitor",
|
||||
|
||||
/* ZNC */
|
||||
"znc.in/server-time-iso",
|
||||
|
@@ -459,7 +459,7 @@ chanlist_join (GtkWidget * wid, server *serv)
|
||||
g_snprintf (tbuf, sizeof (tbuf), "join %s", chan);
|
||||
handle_command (serv->server_session, tbuf, FALSE);
|
||||
} else
|
||||
gdk_beep ();
|
||||
gdk_display_beep (gdk_display_get_default ());
|
||||
g_free (chan);
|
||||
}
|
||||
}
|
||||
@@ -777,7 +777,6 @@ chanlist_opengui (server *serv, int do_refresh)
|
||||
chanlist_add_column (view, COL_CHANNEL, 96, _("Channel"), FALSE);
|
||||
chanlist_add_column (view, COL_USERS, 50, _("Users"), TRUE);
|
||||
chanlist_add_column (view, COL_TOPIC, 50, _("Topic"), FALSE);
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
/* this is a speed up, but no horizontal scrollbar :( */
|
||||
/*gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (view), TRUE);*/
|
||||
gtk_widget_show (view);
|
||||
|
@@ -812,7 +812,6 @@ fe_dcc_open_recv_win (int passive)
|
||||
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
|
||||
G_TYPE_STRING, G_TYPE_POINTER, GDK_TYPE_COLOR);
|
||||
view = gtkutil_treeview_new (vbox, GTK_TREE_MODEL (store), NULL, -1);
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
/* Up/Down Icon column */
|
||||
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (view), -1, NULL,
|
||||
gtk_cell_renderer_pixbuf_new (),
|
||||
@@ -1067,7 +1066,6 @@ fe_dcc_open_chat_win (int passive)
|
||||
dcc_add_column (view, CCOL_START, CCOL_COLOR, _("Start Time"), FALSE);
|
||||
|
||||
gtk_tree_view_column_set_expand (gtk_tree_view_get_column (GTK_TREE_VIEW (view), 1), TRUE);
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
|
||||
dcccwin.list = view;
|
||||
dcccwin.store = store;
|
||||
|
@@ -288,8 +288,6 @@ editlist_treeview_new (GtkWidget *box, char *title1, char *title2)
|
||||
g_signal_connect (G_OBJECT (view), "key_press_event",
|
||||
G_CALLBACK (editlist_keypress), NULL);
|
||||
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
|
||||
render = gtk_cell_renderer_text_new ();
|
||||
g_object_set (render, "editable", TRUE, NULL);
|
||||
g_signal_connect (G_OBJECT (render), "edited",
|
||||
|
@@ -698,7 +698,7 @@ fe_beep (session *sess)
|
||||
|
||||
if (ca_context_play (ca_con, 0, CA_PROP_EVENT_ID, "message-new-instant", NULL) != 0)
|
||||
#endif
|
||||
gdk_beep ();
|
||||
gdk_display_beep (gdk_display_get_default ());
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -674,8 +674,6 @@ key_dialog_treeview_new (GtkWidget *box)
|
||||
g_signal_connect (G_OBJECT (gtk_tree_view_get_selection (GTK_TREE_VIEW(view))),
|
||||
"changed", G_CALLBACK (key_dialog_selection_changed), NULL);
|
||||
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
|
||||
render = gtk_cell_renderer_accel_new ();
|
||||
g_object_set (render, "editable", TRUE,
|
||||
#ifndef WIN32
|
||||
|
@@ -165,7 +165,6 @@ ignore_treeview_new (GtkWidget *box)
|
||||
UNIGNORE_COLUMN, _("Unignore"),
|
||||
-1);
|
||||
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
gtk_tree_view_column_set_expand (gtk_tree_view_get_column (GTK_TREE_VIEW (view), 0), TRUE);
|
||||
|
||||
/* attach to signals and customise columns */
|
||||
|
@@ -399,27 +399,22 @@ fe_set_title (session *sess)
|
||||
_(DISPLAY_NAME));
|
||||
break;
|
||||
case SESS_SERVER:
|
||||
g_snprintf (tbuf, sizeof (tbuf), "%s @ %s - %s",
|
||||
sess->server->nick, server_get_network (sess->server, TRUE),
|
||||
g_snprintf (tbuf, sizeof (tbuf), "%s%s%s - %s",
|
||||
prefs.hex_gui_win_nick ? sess->server->nick : "",
|
||||
prefs.hex_gui_win_nick ? " @ " : "", server_get_network (sess->server, TRUE),
|
||||
_(DISPLAY_NAME));
|
||||
break;
|
||||
case SESS_CHANNEL:
|
||||
/* don't display keys in the titlebar */
|
||||
if (prefs.hex_gui_win_modes)
|
||||
{
|
||||
g_snprintf (tbuf, sizeof (tbuf),
|
||||
"%s @ %s / %s (%s) - %s",
|
||||
sess->server->nick, server_get_network (sess->server, TRUE),
|
||||
sess->channel, sess->current_modes ? sess->current_modes : "",
|
||||
_(DISPLAY_NAME));
|
||||
}
|
||||
else
|
||||
{
|
||||
g_snprintf (tbuf, sizeof (tbuf),
|
||||
"%s @ %s / %s - %s",
|
||||
sess->server->nick, server_get_network (sess->server, TRUE),
|
||||
sess->channel, _(DISPLAY_NAME));
|
||||
}
|
||||
"%s%s%s / %s%s%s%s - %s",
|
||||
prefs.hex_gui_win_nick ? sess->server->nick : "",
|
||||
prefs.hex_gui_win_nick ? " @ " : "",
|
||||
server_get_network (sess->server, TRUE), sess->channel,
|
||||
prefs.hex_gui_win_modes && sess->current_modes ? " (" : "",
|
||||
prefs.hex_gui_win_modes && sess->current_modes ? sess->current_modes : "",
|
||||
prefs.hex_gui_win_modes && sess->current_modes ? ")" : "",
|
||||
_(DISPLAY_NAME));
|
||||
if (prefs.hex_gui_win_ucount)
|
||||
{
|
||||
g_snprintf (tbuf + strlen (tbuf), 9, " (%d)", sess->total);
|
||||
@@ -427,8 +422,9 @@ fe_set_title (session *sess)
|
||||
break;
|
||||
case SESS_NOTICES:
|
||||
case SESS_SNOTICES:
|
||||
g_snprintf (tbuf, sizeof (tbuf), "%s @ %s (notices) - %s",
|
||||
sess->server->nick, server_get_network (sess->server, TRUE),
|
||||
g_snprintf (tbuf, sizeof (tbuf), "%s%s%s (notices) - %s",
|
||||
prefs.hex_gui_win_nick ? sess->server->nick : "",
|
||||
prefs.hex_gui_win_nick ? " @ " : "", server_get_network (sess->server, TRUE),
|
||||
_(DISPLAY_NAME));
|
||||
break;
|
||||
default:
|
||||
|
@@ -66,7 +66,6 @@ plugingui_treeview_new (GtkWidget *box)
|
||||
FILE_COLUMN, _("File"),
|
||||
DESC_COLUMN, _("Description"),
|
||||
FILEPATH_COLUMN, NULL, -1);
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
for (col_id=0; (col = gtk_tree_view_get_column (GTK_TREE_VIEW (view), col_id));
|
||||
col_id++)
|
||||
gtk_tree_view_column_set_alignment (col, 0.5);
|
||||
|
@@ -176,6 +176,7 @@ static const setting appearance_settings[] =
|
||||
{ST_HEADER, N_("Title Bar"),0,0,0},
|
||||
{ST_TOGGLE, N_("Show channel modes"), P_OFFINTNL(hex_gui_win_modes),0,0,0},
|
||||
{ST_TOGGLR, N_("Show number of users"), P_OFFINTNL(hex_gui_win_ucount),0,0,0},
|
||||
{ST_TOGGLE, N_("Show nickname"), P_OFFINTNL(hex_gui_win_nick),0,0,0},
|
||||
|
||||
{ST_END, 0, 0, 0, 0, 0}
|
||||
};
|
||||
@@ -908,7 +909,7 @@ setup_create_hscale (GtkWidget *table, int row, const setting *set)
|
||||
|
||||
#ifndef WIN32 /* Windows always supports this */
|
||||
/* Only used for transparency currently */
|
||||
if (!gtk_widget_is_composited (current_sess->gui->window))
|
||||
if (!gdk_screen_is_composited (gdk_window_get_screen (GDK_WINDOW (current_sess->gui->window))))
|
||||
gtk_widget_set_sensitive (wid, FALSE);
|
||||
#endif
|
||||
}
|
||||
@@ -1793,7 +1794,6 @@ setup_create_sound_page (void)
|
||||
G_CALLBACK (setup_snd_row_cb), NULL);
|
||||
gtk_widget_show (sound_tree);
|
||||
gtk_container_add (GTK_CONTAINER (scrolledwindow1), sound_tree);
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (sound_tree), TRUE);
|
||||
|
||||
table1 = gtk_table_new (2, 3, FALSE);
|
||||
gtk_widget_show (table1);
|
||||
|
@@ -131,7 +131,7 @@ PrintTextRaw (void *xtbuf, unsigned char *text, int indent, time_t stamp)
|
||||
{
|
||||
beep_done = TRUE;
|
||||
if (!prefs.hex_input_filter_beep)
|
||||
gdk_beep ();
|
||||
gdk_display_beep (gdk_display_get_default ());
|
||||
}
|
||||
default:
|
||||
text++;
|
||||
@@ -356,7 +356,6 @@ pevent_treeview_new (GtkWidget *box)
|
||||
view = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store));
|
||||
gtk_tree_view_set_fixed_height_mode (GTK_TREE_VIEW (view), TRUE);
|
||||
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (view), TRUE);
|
||||
gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (view), TRUE);
|
||||
|
||||
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
|
||||
g_signal_connect (G_OBJECT (sel), "changed",
|
||||
|
@@ -3811,7 +3811,8 @@ gtk_xtext_render_page (GtkXText * xtext)
|
||||
if (xtext->buffer->indent < MARGIN)
|
||||
xtext->buffer->indent = MARGIN; /* 2 pixels is our left margin */
|
||||
|
||||
gdk_drawable_get_size (GTK_WIDGET (xtext)->window, &width, &height);
|
||||
width = gdk_window_get_width (GTK_WIDGET (xtext)->window);
|
||||
height = gdk_window_get_height (GTK_WIDGET (xtext)->window);
|
||||
|
||||
if (width < 34 || height < xtext->fontsize || width < xtext->buffer->indent + 32)
|
||||
return;
|
||||
|
@@ -25,7 +25,7 @@ DefaultDirName={pf64}\HexChat
|
||||
DefaultDirName={pf32}\HexChat
|
||||
#endif
|
||||
DefaultGroupName=HexChat
|
||||
DisableProgramGroupPage=yes
|
||||
AllowNoIcons=yes
|
||||
SolidCompression=yes
|
||||
Compression=lzma2/ultra64
|
||||
SourceDir=..\rel
|
||||
@@ -60,6 +60,9 @@ Name: "custom"; Description: "Custom Installation"; Flags: iscustom
|
||||
Name: "libs"; Description: "HexChat"; Types: normal minimal custom; Flags: fixed
|
||||
Name: "xctext"; Description: "HexChat-Text"; Types: custom; Flags: disablenouninstallwarning
|
||||
Name: "xtm"; Description: "HexChat Theme Manager"; Types: normal custom; Flags: disablenouninstallwarning
|
||||
Name: "icons"; Description: "Create Shortcuts"; Types: custom; Flags: disablenouninstallwarning
|
||||
Name: "icons\desktopicon"; Description: "Create Desktop Shortcut"; Types: custom; Flags: disablenouninstallwarning
|
||||
Name: "icons\quicklaunchicon"; Description: "Create Quick Launch Shortcut"; Types: custom; Flags: disablenouninstallwarning
|
||||
Name: "translations"; Description: "Translations"; Types: normal custom; Flags: disablenouninstallwarning
|
||||
Name: "spell"; Description: "Spelling Dictionaries"; Types: custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins"; Description: "Plugins"; Types: custom; Flags: disablenouninstallwarning
|
||||
@@ -196,14 +199,16 @@ Source: "hexchat-text.exe"; DestDir: "{app}"; Flags: ignoreversion; Components:
|
||||
Source: "thememan.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xtm
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\HexChat"; Filename: "{app}\hexchat.exe"; AppUserModelID: "HexChat.Desktop.Notify"; Tasks: not portable
|
||||
Name: "{group}\HexChat Safe Mode"; Filename: "{app}\hexchat.exe"; Parameters: "--no-auto --no-plugins"; Tasks: not portable
|
||||
Name: "{group}\HexChat ChangeLog"; Filename: "{app}\changelog.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 165; Tasks: not portable
|
||||
Name: "{group}\HexChat ReadMe"; Filename: "{app}\readme.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 23; Tasks: not portable
|
||||
Name: "{group}\HexChat Config Folder"; Filename: "%APPDATA%\HexChat\"; Tasks: not portable
|
||||
Name: "{group}\HexChat-Text"; Filename: "{app}\hexchat-text.exe"; Components: xctext; Tasks: not portable
|
||||
Name: "{group}\HexChat Theme Manager"; Filename: "{app}\thememan.exe"; Components: xtm; Tasks: not portable
|
||||
Name: "{group}\Uninstall HexChat"; Filename: "{uninstallexe}"; Tasks: not portable
|
||||
Name: "{group}\HexChat"; Filename: "{app}\hexchat.exe"; AppUserModelID: "HexChat.Desktop.Notify"; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\HexChat Safe Mode"; Filename: "{app}\hexchat.exe"; Parameters: "--no-auto --no-plugins"; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\HexChat ChangeLog"; Filename: "{app}\changelog.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 165; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\HexChat ReadMe"; Filename: "{app}\readme.url"; IconFilename: "{sys}\shell32.dll"; IconIndex: 23; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\HexChat Config Folder"; Filename: "%APPDATA%\HexChat\"; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\HexChat-Text"; Filename: "{app}\hexchat-text.exe"; Components: xctext; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\HexChat Theme Manager"; Filename: "{app}\thememan.exe"; Components: xtm; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{group}\Uninstall HexChat"; Filename: "{uninstallexe}"; Tasks: not portable; Check: not WizardNoIcons
|
||||
Name: "{commondesktop}\HexChat"; Filename: "{app}\hexchat.exe"; AppUserModelID: "HexChat.Desktop.Notify"; Components: icons\desktopicon; Tasks: not portable
|
||||
Name: "{commonappdata}\Microsoft\Internet Explorer\Quick Launch\HexChat"; Filename: "{app}\hexchat.exe"; Components: icons\quicklaunchicon; Tasks: not portable
|
||||
|
||||
[Messages]
|
||||
BeveledLabel= {#APPNAM}
|
||||
|
Reference in New Issue
Block a user