3 | 3 |
#include <stdlib.h>
|
4 | 4 |
#include <string.h>
|
5 | 5 |
#include <math.h>
|
|
6 |
#include <X11/Xlib.h>
|
6 | 7 |
#include <X11/Xatom.h>
|
7 | 8 |
|
8 | 9 |
#include <gdk/gdk.h>
|
|
419 | 420 |
* xapp_gtk_window_set_progress:
|
420 | 421 |
* @window: The #XAppGtkWindow to set the progress for
|
421 | 422 |
* @progress: The value to set for progress.
|
422 | |
*
|
|
423 |
*
|
423 | 424 |
* Sets the progress hint for a window manager (like muffin) to make
|
424 | 425 |
* available when applications want to display the application's progress
|
425 | |
* in some operation. The value sent to the WM will be clamped to
|
|
426 |
* in some operation. The value sent to the WM will be clamped to
|
426 | 427 |
* between 0 and 100.
|
427 | 428 |
*
|
428 | 429 |
* Note: If a window will stick around after progress is complete, you will
|
|
653 | 654 |
|
654 | 655 |
/**
|
655 | 656 |
* xapp_set_xid_icon_name:
|
656 | |
* @xid: (type gulong): The #Window to set the icon name for
|
|
657 |
* @xid: The Window to set the icon name for
|
657 | 658 |
* @icon_name: (nullable): The icon name to set, or %NULL to unset.
|
658 | 659 |
*
|
659 | 660 |
* Sets the icon name hint for a window manager (like muffin) to make
|
|
664 | 665 |
* the window's XID. Set to %NULL to unset.
|
665 | 666 |
*/
|
666 | 667 |
void
|
667 | |
xapp_set_xid_icon_name (Window xid,
|
|
668 |
xapp_set_xid_icon_name (gulong xid,
|
668 | 669 |
const gchar *icon_name)
|
669 | 670 |
{
|
670 | 671 |
g_return_if_fail (xid > 0);
|
|
674 | 675 |
|
675 | 676 |
/**
|
676 | 677 |
* xapp_set_xid_icon_from_file:
|
677 | |
* @xid: (type gulong): The #Window to set the icon name for
|
|
678 |
* @xid: The Window to set the icon name for
|
678 | 679 |
* @file_name: (nullable): The icon path to set, or %NULL to unset.
|
679 | 680 |
*
|
680 | 681 |
* Sets the icon name hint for a window manager (like muffin) to make
|
|
685 | 686 |
* the window's XID. Set to %NULL to unset.
|
686 | 687 |
*/
|
687 | 688 |
void
|
688 | |
xapp_set_xid_icon_from_file (Window xid,
|
|
689 |
xapp_set_xid_icon_from_file (gulong xid,
|
689 | 690 |
const gchar *file_name)
|
690 | 691 |
{
|
691 | 692 |
|
|
696 | 697 |
|
697 | 698 |
/**
|
698 | 699 |
* xapp_set_xid_progress:
|
699 | |
* @xid: (type gulong): The #Window to set the progress for
|
|
700 |
* @xid: The Window to set the progress for
|
700 | 701 |
* @progress: The value to set for progress.
|
701 | 702 |
*
|
702 | 703 |
* Sets the progress hint for a window manager (like muffin) to make
|
|
715 | 716 |
* a given (possibly foreign) window, by passing the window's XID.
|
716 | 717 |
*/
|
717 | 718 |
void
|
718 | |
xapp_set_xid_progress (Window xid,
|
|
719 |
xapp_set_xid_progress (gulong xid,
|
719 | 720 |
gint progress)
|
720 | 721 |
{
|
721 | 722 |
g_return_if_fail (xid > 0);
|
|
726 | 727 |
|
727 | 728 |
/**
|
728 | 729 |
* xapp_set_xid_progress_pulse:
|
729 | |
* @xid: (type gulong): The #Window to set the progress for
|
|
730 |
* @xid: The Window to set the progress for
|
730 | 731 |
* @pulse: Whether to have pulsing set or not.
|
731 | 732 |
*
|
732 | 733 |
* Sets the progress pulse hint hint for a window manager (like muffin)
|
|
740 | 741 |
* Setting an explicit progress value will unset this flag.
|
741 | 742 |
*/
|
742 | 743 |
void
|
743 | |
xapp_set_xid_progress_pulse (Window xid,
|
744 | |
gboolean pulse)
|
|
744 |
xapp_set_xid_progress_pulse (gulong xid,
|
|
745 |
gboolean pulse)
|
745 | 746 |
{
|
746 | 747 |
g_return_if_fail (xid > 0);
|
747 | 748 |
|