mirror of https://github.com/daleclack/My_GtkUi
Fix some bug for windows
This commit is contained in:
parent
4fff43b76a
commit
26cb6dd5f8
|
@ -1,5 +1,6 @@
|
||||||
#include "DrawApp.h"
|
#include "DrawApp.h"
|
||||||
#include "MyFinder.h"
|
#include "MyFinder.h"
|
||||||
|
#define NAME_MAX 256
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "ScoresItem.h"
|
#include "ScoresItem.h"
|
||||||
|
#define NAME_MAX 256
|
||||||
|
|
||||||
struct _ScoresItem
|
struct _ScoresItem
|
||||||
{
|
{
|
||||||
|
|
|
@ -106,6 +106,7 @@ static void window_ctrl(GtkWindow *window, GtkWindow *parent)
|
||||||
case GDK_TOPLEVEL_STATE_MINIMIZED:
|
case GDK_TOPLEVEL_STATE_MINIMIZED:
|
||||||
gtk_window_set_transient_for(window, parent);
|
gtk_window_set_transient_for(window, parent);
|
||||||
gtk_window_unminimize(window);
|
gtk_window_unminimize(window);
|
||||||
|
gtk_window_present(window);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// The controlled window is on dock
|
// The controlled window is on dock
|
||||||
|
|
Loading…
Reference in New Issue