Example #1
0
void deja_dup_show_background_window_for_shell (GtkWindow* win) {
	GtkWindow* _tmp0_;
	GtkWindow* _tmp1_;
	GtkWindow* _tmp2_;
	DejaDupShellEnv _tmp3_ = 0;
	g_return_if_fail (win != NULL);
	_tmp0_ = win;
	gtk_window_set_focus_on_map (_tmp0_, FALSE);
	_tmp1_ = win;
	gtk_window_set_urgency_hint (_tmp1_, TRUE);
	_tmp2_ = win;
	g_signal_connect ((GtkWidget*) _tmp2_, "focus-in-event", (GCallback) _deja_dup_user_focused_gtk_widget_focus_in_event, NULL);
	_tmp3_ = deja_dup_get_shell ();
	if (_tmp3_ == DEJA_DUP_SHELL_ENV_UNITY) {
		GtkWindow* _tmp4_;
		GtkWindow* _tmp5_;
		GtkWindow* _tmp6_;
		_tmp4_ = win;
		gtk_window_iconify (_tmp4_);
		_tmp5_ = win;
		gtk_widget_show ((GtkWidget*) _tmp5_);
		_tmp6_ = win;
		gtk_window_iconify (_tmp6_);
	} else {
		GtkWindow* _tmp7_;
		_tmp7_ = win;
		gtk_widget_show ((GtkWidget*) _tmp7_);
	}
}
Example #2
0
void dbgdock_show_all(int all)
{
	if(!GTK_WIDGET_VISIBLE(dbgw.dock) && all)
        gtk_widget_show(dbgw.dock);

	if(GTK_WIDGET_VISIBLE(dbgw.iop))
        gtk_window_iconify(GTK_WINDOW(dbgw.iop));
	if(GTK_WIDGET_VISIBLE(dbgw.pclog))
        gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
}
Example #3
0
void XttGeGtk::iconify(int val)
{
  if (val)
    gtk_window_iconify(GTK_WINDOW(toplevel));
  else
    gtk_window_deiconify(GTK_WINDOW(toplevel));
}
Example #4
0
gboolean magick_show_preview(struct data *data, 
                             struct image *image,
                             gint image_h)
{
    MagickWand *wand;
    struct image_size *img_size = NULL;
    const gchar *display;

    g_debug("in magick_show_preview");

    wand = _generate_webimage(data, image, image_h, &img_size);
    g_free(img_size);

    if (wand == NULL)
        return FALSE;

    gtk_window_iconify( GTK_WINDOW( data->top_window ) );
    while (g_main_context_iteration(NULL, FALSE));

    display = g_getenv("DISPLAY");
    MagickDisplayImage(wand, display ? display : ":0.0");

    DestroyMagickWand(wand);

    gtk_window_deiconify( GTK_WINDOW( data->top_window ) );
    while (g_main_context_iteration(NULL, FALSE));

    return TRUE;
}
Example #5
0
void
fe_ctrl_gui (session * sess, fe_gui_action action, int arg)
{
    switch (action) {
    case FE_GUI_HIDE:
        gtk_widget_hide (gui.main_window);
        break;

    case FE_GUI_SHOW:
        gtk_widget_show (gui.main_window);
        gtk_window_present (GTK_WINDOW (gui.main_window));
        break;

    case FE_GUI_ICONIFY:
        gtk_window_iconify (GTK_WINDOW (gui.main_window));
        break;

    case FE_GUI_FOCUS:
    case FE_GUI_FLASH:
        navigation_tree_select_session (gui.server_tree, sess);
        break;
    case FE_GUI_MENU:
    case FE_GUI_ATTACH:
    case FE_GUI_APPLY:
    case FE_GUI_COLOR:
        /* These are unhandled for now */
        break;
    }
}
Example #6
0
void MainBoxUnfocus()
{
	gtk_widget_set_sensitive(mainbox.file1, FALSE);
	gtk_widget_set_sensitive(mainbox.file2, FALSE);
	gtk_widget_set_sensitive(mainbox.okbutton, FALSE);
	gtk_window_iconify(GTK_WINDOW(mainbox.window));
} // END MainBoxUnfocus()
Example #7
0
static void on_keyboard_escape(GtkWidget* widget, ChmSee* self) {
	if(selfp->fullscreen) {
		chmsee_set_fullscreen(self, FALSE);
	} else {
		gtk_window_iconify(GTK_WINDOW(self));
	}
}
Example #8
0
// Common remplacement for gtk_window_(de)iconify)
void gtk_window_minimize(GtkWindow *window, gboolean action)
{
	if(action)
		gtk_window_iconify(window);
	else
		gtk_window_deiconify(window);
}
Example #9
0
void wxTopLevelWindowGTK::Iconize( bool iconize )
{
    if (iconize)
        gtk_window_iconify( GTK_WINDOW( m_widget ) );
    else
        gtk_window_deiconify( GTK_WINDOW( m_widget ) );
}
Example #10
0
void MainBoxUnfocus() {

  gtk_widget_set_sensitive(mainbox.device, FALSE);

  gtk_window_iconify(GTK_WINDOW(mainbox.window));

} // END MainBoxUnfocus()
Example #11
0
gboolean af_window_minimize()
{
    if (!af_window_get_visible()) return FALSE;

    GtkWidget *window = global_get("window");
    gtk_window_iconify(GTK_WINDOW(window));
    return TRUE;
}
Example #12
0
void gMainWindow::setMinimized(bool vl)
{
	if (!isTopLevel()) return;
	
	_minimized = vl;
	if (vl) gtk_window_iconify(GTK_WINDOW(border));
	else    gtk_window_deiconify(GTK_WINDOW(border));
}
static void
fsearch_window_action_hide_window (GSimpleAction *action,
                                   GVariant      *variant,
                                   gpointer       user_data)
{
    FsearchApplicationWindow *self = user_data;
    gtk_window_iconify (GTK_WINDOW (self));
}
Example #14
0
void Minimize(CefWindowHandle handle) {
  GtkWindow* window = GetWindow(handle);

  // Unmaximize the window before minimizing so restore behaves correctly.
  if (IsMaximized(window))
    gtk_window_unmaximize(window);

  gtk_window_iconify(window);
}
JNIEXPORT void JNICALL
Java_gnu_java_awt_peer_gtk_GtkFramePeer_iconify
(JNIEnv *env, jobject obj)
{
    void *ptr;
    gdk_threads_enter ();
    ptr = gtkpeer_get_widget (env, obj);
    gtk_window_iconify (GTK_WINDOW (ptr));
    gdk_threads_leave ();
}
Example #16
0
gboolean
vol_window_event(GtkWidget * widget, GdkEvent * event, gpointer * data) {

	if (event->type == GDK_DELETE) {
		gtk_window_iconify(GTK_WINDOW(vol_window));
		return TRUE;
	}

	return FALSE;
}
Example #17
0
void deja_dup_hide_background_window_for_shell (GtkWindow* win) {
	DejaDupShellEnv _tmp0_ = 0;
	g_return_if_fail (win != NULL);
	_tmp0_ = deja_dup_get_shell ();
	if (_tmp0_ == DEJA_DUP_SHELL_ENV_UNITY) {
		GtkWindow* _tmp1_;
		GtkWindow* _tmp2_;
		GtkWindow* _tmp3_;
		_tmp1_ = win;
		gtk_window_iconify (_tmp1_);
		_tmp2_ = win;
		gtk_widget_show ((GtkWidget*) _tmp2_);
		_tmp3_ = win;
		gtk_window_iconify (_tmp3_);
	} else {
		GtkWindow* _tmp4_;
		_tmp4_ = win;
		gtk_widget_hide ((GtkWidget*) _tmp4_);
	}
}
Example #18
0
void MainBoxUnfocus()
{
    gtk_widget_set_sensitive(mainbox.file, FALSE);
    gtk_widget_set_sensitive(mainbox.selectbutton, FALSE);
    gtk_widget_set_sensitive(mainbox.startcheck, FALSE);
    gtk_widget_set_sensitive(mainbox.restartcheck, FALSE);
    gtk_widget_set_sensitive(mainbox.okbutton, FALSE);
    gtk_widget_set_sensitive(mainbox.devbutton, FALSE);
    gtk_widget_set_sensitive(mainbox.convbutton, FALSE);
    gtk_window_iconify(GTK_WINDOW(mainbox.window));
} // END MainBoxUnfocus()
static gboolean OnFocusOutFS(GtkWidget *widget, GdkEvent  *event, gpointer user_data)
{
	Application.Active = false;
	if (Application.FullScreenMode() && Application.GetConfigWidth() != -1)
	{
		Application.RestoreVideoMode();
		gtk_window_iconify(GTK_WINDOW(widget));
		fullscreen_needs_restore = false;
	}
	ungrab_mouse();
	return false;
}
Example #20
0
File: gtk.c Project: sk1p/darktable
void dt_gui_gtk_quit()
{
  GtkWindow *win = GTK_WINDOW(dt_ui_main_window(darktable.gui->ui));
  gtk_window_iconify(win);

  GtkWidget *widget;
  widget = darktable.gui->widgets.left_border;
  g_signal_handlers_block_by_func (widget, expose_borders, (gpointer)0);
  widget = darktable.gui->widgets.right_border;
  g_signal_handlers_block_by_func (widget, expose_borders, (gpointer)1);
  widget = darktable.gui->widgets.top_border;
  g_signal_handlers_block_by_func (widget, expose_borders, (gpointer)2);
  widget = darktable.gui->widgets.bottom_border;
  g_signal_handlers_block_by_func (widget, expose_borders, (gpointer)3);

}
Example #21
0
GtkWidget* dbgmem_display_window(void)
{ 
#ifdef WND_STATE
	if(!options3.mem.minimized)
	{
		gtk_window_resize(GTK_WINDOW(dbgw.mem), options3.mem.rect.w, options3.mem.rect.h);
		gtk_window_move(GTK_WINDOW(dbgw.mem), options3.mem.rect.x, options3.mem.rect.y);
	}
	else
		gtk_window_iconify(GTK_WINDOW(dbgw.mem));
#endif

	if(!GTK_WIDGET_VISIBLE(dbgw.mem) && !options3.mem.closed)
		gtk_widget_show(dbgw.mem);

    return dbgw.mem;
}
Example #22
0
// minimize all windows
void gtk_debugger_minimize_all(int all)
{
    if(GTK_WIDGET_VISIBLE(dbgw.regs))
        gtk_window_iconify(GTK_WINDOW(dbgw.regs));
    if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
        gtk_window_iconify(GTK_WINDOW(dbgw.bkpts));
    if(GTK_WIDGET_VISIBLE(dbgw.mem))
        gtk_window_iconify(GTK_WINDOW(dbgw.mem));
    if(GTK_WIDGET_VISIBLE(dbgw.pclog))
        gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
    if(GTK_WIDGET_VISIBLE(dbgw.code) & all)
        gtk_window_iconify(GTK_WINDOW(dbgw.code));
    if(GTK_WIDGET_VISIBLE(dbgw.stack))
        gtk_window_iconify(GTK_WINDOW(dbgw.stack));
	if(GTK_WIDGET_VISIBLE(dbgw.heap))
        gtk_window_iconify(GTK_WINDOW(dbgw.heap));
	if(GTK_WIDGET_VISIBLE(dbgw.iop))
        gtk_window_iconify(GTK_WINDOW(dbgw.iop));
}
Example #23
0
JNIEXPORT void JNICALL
Java_org_gnome_gtk_GtkWindow_gtk_1window_1iconify
(
	JNIEnv* env,
	jclass cls,
	jlong _self
)
{
	GtkWindow* self;

	// convert parameter self
	self = (GtkWindow*) _self;

	// call function
	gtk_window_iconify(self);

	// cleanup parameter self
}
Example #24
0
GtkWidget* dbgregs_display_window(void)
{
#ifdef WND_STATE
	if(!options3.regs.minimized)
	{
		gtk_window_resize(GTK_WINDOW(dbgw.regs), options3.regs.rect.w, options3.regs.rect.h);
		gtk_window_move(GTK_WINDOW(dbgw.regs), options3.regs.rect.x, options3.regs.rect.y);
	}
	else
		gtk_window_iconify(GTK_WINDOW(dbgw.regs));
#endif
    
	ctree_refresh(store);

	if(!GTK_WIDGET_VISIBLE(dbgw.regs) && !options3.regs.closed)
		gtk_widget_show(dbgw.regs);

	return dbgw.regs;
}
Example #25
0
GtkWidget* dbgheap_display_window(void)
{
#ifdef WND_STATE
	if(!options3.heap.minimized)
	{
		gtk_window_resize(GTK_WINDOW(dbgw.heap), options3.heap.rect.w, options3.heap.rect.h);
		gtk_window_move(GTK_WINDOW(dbgw.heap), options3.heap.rect.x, options3.heap.rect.y);
	}
	else
		gtk_window_iconify(GTK_WINDOW(dbgw.heap));
#endif

	clist_refresh(store);

	if(!GTK_WIDGET_VISIBLE(dbgw.heap) && !options3.heap.closed)
		gtk_widget_show(dbgw.heap);

	return dbgw.heap;
}
Example #26
0
// minimize all windows
void dbgwnds_minimize_all(int all)
{
	if(options3.dbg_dock)
		return;

    if(GTK_WIDGET_VISIBLE(dbgw.regs))
        gtk_window_iconify(GTK_WINDOW(dbgw.regs));
    if(GTK_WIDGET_VISIBLE(dbgw.bkpts))
        gtk_window_iconify(GTK_WINDOW(dbgw.bkpts));
    if(GTK_WIDGET_VISIBLE(dbgw.mem))
        gtk_window_iconify(GTK_WINDOW(dbgw.mem));
    if(GTK_WIDGET_VISIBLE(dbgw.pclog))
        gtk_window_iconify(GTK_WINDOW(dbgw.pclog));
    if(GTK_WIDGET_VISIBLE(dbgw.code) & all)
        gtk_window_iconify(GTK_WINDOW(dbgw.code));
    if(GTK_WIDGET_VISIBLE(dbgw.stack))
        gtk_window_iconify(GTK_WINDOW(dbgw.stack));
	if(GTK_WIDGET_VISIBLE(dbgw.heap))
        gtk_window_iconify(GTK_WINDOW(dbgw.heap));
	if(GTK_WIDGET_VISIBLE(dbgw.iop))
        gtk_window_iconify(GTK_WINDOW(dbgw.iop));
}
Example #27
0
GtkWidget* dbgheap_display_window(void)
{
	if(!already_open)
		wnd = dbgheap_create_window();
    
#ifdef WND_STATE
	if(!options3.heap.minimized)
	{
		gtk_window_resize(GTK_WINDOW(wnd), options3.heap.rect.w, options3.heap.rect.h);
		gtk_window_move(GTK_WINDOW(wnd), options3.heap.rect.x, options3.heap.rect.y);
	}
	else
		gtk_window_iconify(GTK_WINDOW(wnd));
#endif

	clist_refresh(store);
	gtk_widget_show(wnd);

	return wnd;
}
DIA_encoding::DIA_encoding( uint32_t fps1000 )
{
uint32_t useTray=0;
        if(!prefs->get(FEATURE_USE_SYSTRAY,&useTray)) useTray=0;

	ADM_assert(dialog==NULL);
	stopReq=0;
	
	_totalSize=0;
	_audioSize=0;
	_videoSize=0;
	_current=0;
	setFps(fps1000);
	dialog=create_dialog1();
        
	gtk_register_dialog(dialog);
	//gtk_transient(dialog);
	gtk_signal_connect(GTK_OBJECT(WID(closebutton1)), "clicked",
                      GTK_SIGNAL_FUNC(DIA_stop),                   NULL);
	gtk_signal_connect(GTK_OBJECT(dialog), "delete_event",
		       GTK_SIGNAL_FUNC(on_destroy_abort), NULL);
	gtk_widget_show(dialog);
//	gtk_window_set_modal(GTK_WINDOW(dialog), 1);
        if(useTray)
	{
               gtk_window_iconify(GTK_WINDOW(dialog));
	       UI_iconify();
	}
	_lastTime=0;
	_lastFrame=0;
	_fps_average=0;
        tray=NULL;
        
        if(useTray)
                tray=new ADM_tray("Encoding");

}
Example #29
0
int iupdrvDialogSetPlacement(Ihandle* ih)
{
  char* placement;
  int old_state = ih->data->show_state;
  ih->data->show_state = IUP_SHOW;

  if (iupAttribGetBoolean(ih, "FULLSCREEN"))
  {
    gtk_window_fullscreen((GtkWindow*)ih->handle);
    return 1;
  }
  
  placement = iupAttribGet(ih, "PLACEMENT");
  if (!placement)
  {
    if (old_state == IUP_MAXIMIZE || old_state == IUP_MINIMIZE)
      ih->data->show_state = IUP_RESTORE;

    gtk_window_unmaximize((GtkWindow*)ih->handle);
    gtk_window_deiconify((GtkWindow*)ih->handle);
    return 0;
  }

  if (iupStrEqualNoCase(placement, "MINIMIZED"))
  {
    ih->data->show_state = IUP_MINIMIZE;
    gtk_window_iconify((GtkWindow*)ih->handle);
  }
  else if (iupStrEqualNoCase(placement, "MAXIMIZED"))
  {
    ih->data->show_state = IUP_MAXIMIZE;
    gtk_window_maximize((GtkWindow*)ih->handle);
  }
  else if (iupStrEqualNoCase(placement, "FULL"))
  {
    int width, height, x, y;
    int border, caption, menu;
    iupdrvDialogGetDecoration(ih, &border, &caption, &menu);

    /* position the decoration outside the screen */
    x = -(border);
    y = -(border+caption+menu);

    /* the dialog client area will cover the task bar */
    iupdrvGetFullSize(&width, &height);

    height += menu; /* menu is inside the client area. */

    /* set the new size and position */
    /* The resize evt will update the layout */
    gtk_window_move((GtkWindow*)ih->handle, x, y);
    gtk_window_resize((GtkWindow*)ih->handle, width, height); 

    if (old_state == IUP_MAXIMIZE || old_state == IUP_MINIMIZE)
      ih->data->show_state = IUP_RESTORE;
  }

  iupAttribSetStr(ih, "PLACEMENT", NULL); /* reset to NORMAL */

  return 1;
}
void UI_iconify( void )
{
	gtk_window_iconify(GTK_WINDOW(guiRootWindow));
}