Enhancement: Fixes #536, shell - implement New menu function

This commit is contained in:
Rory Fewell
2025-10-29 21:26:06 +00:00
parent 75d620ac63
commit fc06891951
31 changed files with 589 additions and 64 deletions

View File

@@ -25,7 +25,14 @@ static GHashTable* s_printers_map = NULL;
// FIXME: Temporary, until we display printers
//
static WinTCShextViewItem s_temp_items[] = {
{ "FPO", "printer", TRUE, 0, NULL }
{
"FPO",
"printer",
TRUE,
0,
WINTC_SHEXT_VIEW_ITEM_DEFAULT,
NULL
}
};
//

View File

@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.12)
project(
wintc-document-templates
VERSION 1.0
DESCRIPTION "Windows Total Conversion document templates."
LANGUAGES C
)
set(PROJECT_ANYARCH true)
set(PROJECT_FREESTATUS true)
set(PROJECT_MAINTAINER "Rory Fewell <roryf@oddmatics.uk>")
set(PROJECT_ROOT ${CMAKE_CURRENT_LIST_DIR})
include(GNUInstallDirs)
include(../../packaging/cmake-inc/common/CMakeLists.txt)
include(../../packaging/cmake-inc/packaging/CMakeLists.txt)
# Installation
#
wintc_configure_and_install_packaging()
install(
DIRECTORY ${PROJECT_ROOT}/res/
DESTINATION ${WINTC_ASSETS_INSTALL_DIR}/templates
)

View File

Binary file not shown.

Binary file not shown.

View File

View File

Binary file not shown.

View File

@@ -24,6 +24,7 @@ wintc_resolve_library(libcanberra CANBERRA)
wintc_resolve_library(libcanberra-gtk3 CANBERRA_GTK3)
wintc_resolve_library(glib-2.0 GLIB)
wintc_resolve_library(gtk+-3.0 GTK3)
wintc_resolve_library(webkit2gtk-4.1 WEBKITGTK)
wintc_resolve_library(wintc-comctl WINTC_COMCTL)
wintc_resolve_library(wintc-comgtk WINTC_COMGTK)
wintc_resolve_library(wintc-shcommon WINTC_SHCOMMON)
@@ -31,20 +32,6 @@ wintc_resolve_library(wintc-shell WINTC_SHELL)
wintc_resolve_library(wintc-shellext WINTC_SHELLEXT)
wintc_resolve_library(wintc-shlang WINTC_SHLANG)
# FreeBSD currently does not have webkit2gtk-4.1 -- not a huge problem here
# because the only different between 4.0 and 4.1 is apparently usage of
# libsoap2 vs. libsoap3, which we don't really care about
#
# FIXME: Review this again sometime in future, I think there is ongoing
# with the webkit2gtk port on FreeBSD so this will probably get sorted
# out eventually
#
if (${WINTC_PKGMGR} STREQUAL "bsdpkg")
wintc_resolve_library(webkit2gtk-4.0 WEBKITGTK)
else()
wintc_resolve_library(webkit2gtk-4.1 WEBKITGTK)
endif()
wintc_compile_resources()
add_executable(

View File

@@ -543,7 +543,7 @@ static void wintc_explorer_window_set_property(
// FIXME: We don't handle extended paths yet!
//
WinTCShextPathInfo path_info;
WinTCShextPathInfo path_info = { 0 };
wintc_shext_path_info_demangle_uri(
&path_info,

View File

@@ -842,8 +842,8 @@ static void refresh_personal_menu(
)
);
g_object_unref(entry_internet);
g_object_unref(entry_email);
g_clear_object(&entry_internet);
g_clear_object(&entry_email);
// Add separator between defaults & MFU
//